-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Device should register, Push Notification should receive on IOS. #926
Comments
@cwMohneesh the installation of the plugin must have failed if the PushNotification object is not available. Need more info from you in order to debug. |
@macdonst I am developing a cross platform app in android and ios using intel xdk. I installed this plugin through intel xdk. This plugin works on android very well but not registering device on ios. Please guide me where am I doing wrong. If any process for ios implementation is available for this plugin Please share with example. Thanks a lot. |
@cwMohneesh I'm sorry but you'll need to debug with the Intel XDK guys. I don't have an infinite amount of time to debug all the third party build services. |
@macdonst Thanks for your precious time. I 'll try to connect with Intel XDK guys. |
Hey @tony-- can you take a look at this issue? |
Probably won't have time until Update: adjusted estimate 😞 |
@tony-- no problem, thanks for looking at it whenever you get a chance. |
I ran across a similar issue, one of the things that I noticed when trying to resolve it was the following when re-adding the ios platform: Skipping 'phonegap-plugin-push' for ios Updating to the newest phonegap-cli ( 6.2.5 in my case ) let me build a working ios app via xcode. I also updated config.xml ( for build.phonegap ) to include the following: |
Just wanted to give an update... I asume this is an issue on my side (probably with my server?) and am troubleshooting. |
I got the plugin working with vanilla Cordova (sent and received notifications on both dev and prod environments). For reference, my problem was that I wasn't using the correct provisioning profile and I had the wrong format for the device id. I'll try with Intel XDK later tonight or tomorrow. |
Thanks @tony-- your assistance is appreciated. |
I made a new app in Intel XDK, added the plugin, edited the configuration, built the app, installed the app and received a push notification. Test Environment
That should be it, but I probably forgot something, so let me know if more information is needed. |
@tony and @macdonst -- The XDK build system currently provides the equivalent functionality of the gradle script that is part of this plugin (at least, the first part of the gradle script, which sets the push services ID equal to the app ID). So removing the reference to the gradle script from the If I understand that last part of that gradle script, correctly, this part of that gradle script...
...may also not be a problem, but I'm not absolutely sure. I'm interpreting that part of this plugin's gradle script to mean that you require specifically version 23.4.0 of the android v4 support lib, but I'm guessing that using a later version would also work? Is that correct? Or am I smoking something? Please clarify that point. I believe we have a later version of those lib files installed on our system. |
@macdonst -- I take that back, as of today, the most recent production version of that lib is 23.4.0, but it will eventually be updated to 24.0.x. If we do not honor that part of the gradle script, when we're building against a later version of that lib, do you expect problems? |
@xmnboy Google released a beta version of that lib and it is not compatible with the current version of Play Services see issue #909 for more details. As soon as Google fixes this issue I will remove the part of the Gradle script that forces people to use 23.4.0. So for now do not build with 24.x.y as it will crash your app. |
Thanks for the clarification, Simon (@macdonst). |
@tony-- you said here
the device token is: XXXXXXXX 19b101a3 71590c03 9ea7f446 50eb8409 19ac24bb c1ec1320 XXXXXXXX or this: 19b101a3 71590c03 9ea7f446 50eb8409 19ac24bb c1ec1320 |
@yesroh Please refer to step 8:
|
This thread has been automatically locked. |
Expected Behaviour
Device should register, Push Notification should receive on IOS ie. iphone etc.
Actual Behaviour
Not getting tocken, when app launch, Showing error "ReferenceError: Can't find variable: PushNotification" while debugging on ios device.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
ios - 9.3
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
Plugin version
Sample Push Data Payload
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: