NativeScript / push-plugin

Contains the source code for the Push Plugin.
Apache License 2.0
123 stars 48 forks source link

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

Open GeetsKrish opened 6 years ago

GeetsKrish commented 6 years ago

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.

zbranzov commented 6 years ago

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.