Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later. #45

Closed
vishnurajoasys opened this issue Sep 21, 2014 · 10 comments

Comments

@vishnurajoasys
Copy link

2014-09-21 16:00:00.198 OASYS[952:271480] Initializing application: (null) (null)
2014-09-21 16:00:00.254 OASYS[952:271480] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/097B499C-085C-4014-8D94-68BF/Library/Cookies/Cookies.binarycookies
2014-09-21 16:00:01.028 OASYS[952:271480] Apache Cordova native platform version 3.6.0 is starting.
2014-09-21 16:00:01.029 OASYS[952:271480] Multi-tasking -> Device: YES, App: YES
2014-09-21 16:00:01.069 OASYS[952:271480] Unlimited access to network resources
2014-09-21 16:00:01.081 OASYS[952:271480]

Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/documentation/data-storage/

2014-09-21 16:00:01.596 OASYS[952:271480] [CDVTimer][splashscreen] 328.299999ms
2014-09-21 16:00:01.612 OASYS[952:271480] [CDVTimer][statusbar] 15.071988ms
2014-09-21 16:00:01.613 OASYS[952:271480] [CDVTimer][TotalPluginStartup] 345.326006ms
2014-09-21 16:00:01.642 OASYS[952:271480] Will show push notifications alert
2014-09-21 16:00:02.009 OASYS[952:271570] Sending request: {"request":{"hwid":"F0xxxE3C-28EB-44A1-B46F-8F3xxxxx7DE","application":"Fxxxxx-16280","v":"2.3"}}
2014-09-21 16:00:02.014 OASYS[952:271570] To urL https://cp.pushwoosh.com/json/1.3/applicationOpen
2014-09-21 16:00:02.641 OASYS[952:271480] Resetting plugins due to page load.
2014-09-21 16:00:03.744 OASYS[952:271480] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/2xxxxxE9-EFC6-4883-87FE-D9720Dxxxx96/OASYS.app/www/index.html
2014-09-21 16:00:04.000 OASYS[952:271480] THREAD WARNING: ['NetworkStatus'] took '56.248047' ms. Plugin should use a background thread.
2014-09-21 16:00:04.192 OASYS[952:271480] registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.
2014-09-21 16:00:04.212 OASYS[952:271480] THREAD WARNING: ['Geolocation'] took '15.568115' ms. Plugin should use a background thread.
2014-09-21 16:00:05.923 OASYS[952:271570] Response "200 no error": string: {"status_code":200,"status_message":"OK","response":null}
2014-09-21 16:00:05.926 OASYS[952:271570] sending appOpen completed

@shaders
Copy link
Contributor

shaders commented Sep 21, 2014

Have you tried the latest update? It has the framework for iOS8.0 comitted.

@vishnurajoasys
Copy link
Author

com.pushwoosh.plugins.pushwoosh 3.2.0 "Pushwoosh"
Im using this. Should I remove and install the plugin from CLI? I'm using cordova plugin.

@vishnurajoasys
Copy link
Author

I did cordova plugin rm com.pushwoosh.plugins.pushwoosh
and cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git

I got this issue now.

2014-09-22 09:41:39.215 OASYS[1117:312897] CDVPlugin class PushNotification (pluginName: PushNotification) does not exist.
2014-09-22 09:41:39.217 OASYS[1117:312897] ERROR: Plugin 'PushNotification' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-09-22 09:41:39.218 OASYS[1117:312897] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"INVALID",
"PushNotification",
"onDeviceReady",
[
{
"pw_appid" : "Fxxx5-16xx0"
}
]
]
2014-09-22 09:41:39.219 OASYS[1117:312897] CDVPlugin class PushNotification (pluginName: PushNotification) does not exist.
2014-09-22 09:41:39.219 OASYS[1117:312897] ERROR: Plugin 'PushNotification' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-09-22 09:41:39.220 OASYS[1117:312897] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"PushNotification256705670",
"PushNotification",
"registerDevice",
[

]
]
2014-09-22 09:41:39.243 OASYS[1117:312897] THREAD WARNING: ['Geolocation'] took '17.927002' ms. Plugin should use a background thread.

@shaders
Copy link
Contributor

shaders commented Sep 23, 2014

It looks like the plugin was not added somehow. I'm going to increment plugin version to 3.3.0 now

@mariokombat
Copy link

i have the some problem, i have install from : cordova plugin add https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git

and i got the some issue of vishnurajoasys

Can you help me shaders?

@shaders
Copy link
Contributor

shaders commented Oct 9, 2014

I cannot reproduce it here, everything installs correctly. Have you tried asking phonegap community? (community.phonegap.com) It looks like a problem of pluginstall.
Alternatively open the project in XCode and check that pushwoosh libraries and headers are a part of the project

@justinpatten
Copy link

I had to do a platform remove ios and then platform add ios to have it properly update the plugin. However, I am now getting device token not registered for any of the test devices using the new plugin

@emredagli
Copy link

I have same problem on ios, (I upgraded to xcode 6.0.1 and cordova 3.6.3-0.2.13)
I checked all related files and they are added appropriately.
On console I get following errors:

2014-10-14 23:35:52.798 ..[244:60b] CDVPlugin class PushNotification (pluginName: PushNotification) does not exist.
2014-10-14 23:35:52.799 ..[244:60b] ERROR: Plugin 'PushNotification' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-10-14 23:35:52.800 ..[244:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"INVALID",
"PushNotification",
"onDeviceReady",
[
{
"pw_appid" : "E84F3-11111”
}
]
]
2014-10-14 23:35:52.802 ..[244:60b] CDVPlugin class PushNotification (pluginName: PushNotification) does not exist.
2014-10-14 23:35:52.803 ..[244:60b] ERROR: Plugin 'PushNotification' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-10-14 23:35:52.804 ..[244:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"PushNotification111111,
"PushNotification",
"registerDevice",
[

]
]
2014-10-14 23:35:52.805 ..[244:60b] CDVPlugin class PushNotification (pluginName: PushNotification) does not exist.
2014-10-14 23:35:52.806 ..[244:60b] ERROR: Plugin 'PushNotification' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-10-14 23:35:52.808 ..[244:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"INVALID",
"PushNotification",
"setApplicationIconBadgeNumber",
[
{
"badge" : 0
}
]
]

Thanks for your help

@justinpatten
Copy link

Did you try the full platform remove/add for ios? That solved it for me

@armandocv
Copy link

I had the same issue, I tried:

cordova platform remove ios
cordova platform add ios
cordova build

That worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants