push-plugin icon indicating copy to clipboard operation
push-plugin copied to clipboard

How to retrieve data from push notification when iOS app is in killed state

Open GeetsKrish opened this issue 7 years ago • 1 comments

Nativescript-Vue

Which platform(s) does your issue occur on?

Both iOS and Android iOS version(11.3) & Android version(7.0) iPhone 6 & Samsung

Please, provide the following version numbers that your issue occurs with:

$tns --version 3.4.3

"tns-ios": { "version": "3.4.1" }, "tns-android": { "version": "3.4.2" }

How to retrieve data from push notification when iOS app is in killed state? notificationCallbackIOS is not triggered when app is launched from killed state by tapping notification

Unable to retrieve data from push notification when app is in background and killed state(Android)

Tried to get data from args using getIntent() but end up with an error:

getIntent() is not a function.

GeetsKrish avatar Apr 17 '18 06:04 GeetsKrish

Unfortunately, the plugin hasn't implemented Vue support and we will be happy if you are able to contribute and helps with that task. As for the question how to handle the data from the notifications in angular in vanilla apps, you can check this issue https://github.com/NativeScript/push-plugin/issues/212 and documentation.

zbranzov avatar Apr 20 '18 14:04 zbranzov