react native ios create actionable notification - ios

I have checked with many blogs and examples.But I am not getting proper documentation or steps to add actions in iOS push notification.
My application builds using latest versions,
react-native => 0.62.2
react => 16.11.0
PushNotificationIOS Plugin => 1.2.2 (Find plugin more details here)
Also Tried with wix/react native notificatin
So using this plugin I am able to get normal notification, but in some case I need user action so want create Notification with Accept and Decline button. like below image,
Also I have tried with react-native-ios-notification-actions plugin. But this plugin is not working with my current PushNotificationIOS plugin.
So my question is,
How I can register action as there is option given in plugin documentation to handle actionable parameter but not sure how to register it before sending the notification?
Is there any other plugin using that anyone achieve this functionality?
Any iOS guy can suggest me steps or way where I can merge native UNNotificationAction class code into it's didReceiveRemoteNotification method.
wix/react-native-notifications gives me error "Error setting up in iOS (lib/dist/index.js doesn't exist)." If Anyone resolve this error or find solution share me your suggestions?

Related

Allow user to change App Icon in React Native

Apple specifies that users can change their icon to give a more personalised experience. See docs here:
https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/app-icon/#user-selectable-app-icons
My question is regarding using this functionality in React Native. Building an app in React Native is it possible to access this setAlternateIconName method and provide the user with alternate app icons? Does React Native provide a nice way to interact with this IOS method?
I am currently trying to build this out. This package seems designed to do what we both are looking for, but I haven't tried on anything that I have actually deployed yet.
https://github.com/skb1129/react-native-change-icon
use can use this module react-native-alternate-icons, it allows to access to setAlternateIconName method

React Native iOS Push Notification with Image

I currently have an app which was made with React Native. I need to display a local push notification, and there needs to be an image displayed within this notification. Currently, I am using the react-native-push-notification library for basic text notifications.
I have been looking for solutions but I have not found any way yet that I can add images into a notification. Is there some way to hook into native code that would allow me to do it?
Any help is greatly appreciated.
I am using react-native-firebase and it works great for me. It has an option for local notifications.
You can learn more about iOS notification with an image here: https://rnfirebase.io/docs/v4.2.x/notifications/reference/IOSNotification It gives an option to set a launchImage for iOS notifications. You should go through the documentation properly in order to install it properly.
I have used react-native-fcm, which is implemented using react-native-firebase. The support for issues are good enough and the document is well drafted for both ios and android. The pictures, icons and actions are configurable for both local and remote notifications.

How can I call with native Swift methods from Electron app using javascript?

I am looking to add in-app subscriptions to the mac desktop app so I can submit to app store.
I have the code written for iOS using the cordova plugin: https://github.com/AlexDisler/cordova-plugin-inapppurchase
But for electron there exists no such plugin.
So I can use the native swift code from the plugin, but need a way to write a custom plugin so I can call swift methods from javascript running the Electron app.
Please let me know how to approach this, or point me to the correct resources.
Thanks You

How to cancel AWS 1.4.6 AmazonServiceRequest in iOS

I have an async upload process working with Amazon S3 but I am having trouble when I try to cancel it.
I'm trying to call cancel on the request but I get an unrecognised selector crash. I think this is due to the cancel method not existing in the 1.4.6 version of the AWS iOS SDK but I could be wrong, I know it definitely exists in 1.6 but unfortunately I cannot use the latest version.
Is there a different way to cancel a request in 1.4.6?
Thanks
I am one of the maintainers of the AWS SDK for iOS. The cancel method has been available on AmazonServiceRequest since version 1.4.4 as seen in GitHub. You may want to verify that you don't have an older version of the SDK in your Framework search path. You can verify the version of the SDK you are using with the code metioned on the AWS Mobile Developer Blog.
Can you let us know why you are unable to use the latest version of the SDK? Is there something we can change to help make it possible for you to upgrade?

PhoneGap Meteor iOS Push Notifications

I have currently used phonegap and deployed an iOS app that takes the URL of my meteor app and convert it into a "webapp" (not sure if this is accurate). However, I would like to implement remote/push notifications to Apple's servers APNS to enable the app to receive notifications, update badges etc... Are there any other means other than Urban airship?
Also, I chanced upon ObjectiveDDP, https://github.com/boundsj/ObjectiveDDP#requirements, but the tutorial is not working for me and it is really frustrating.
Thank you!
You can use the Phonegap team Push Plugin (on github) that allows sending push notifications for Android and iOS.
The plugin can be integrated via the phonegap build site without having to use Java or Objective-C or using Java or Objective-C.
Here is an updated answer that works as of 12/25/14:
Simply use the push package by raix: https://atmospherejs.com/raix/push The documentation is really good.
I think you need this one,
https://github.com/SpaceCapsule/Meteor-phonegap-push
I am implementing the same,
If I am able to do so I will put the demo too
Thanks.
I just released a new package that makes it easy to integrate Meteor with Cordova (Phonegap). You can use the Cordova API, including push notifications, just like it describes in the docs.
Check out Cordova Loader package.
Use PushPlugin
cordova plugin add https://github.com/phonegap-build/PushPlugin.git

Resources