I am trying to add pushwoosh through marmalade to mobile application (at the moment on ios device). Like on
http://www.pushwoosh.com/programming-push-notification/marmalade-push-sdk-integration/
I have add to Info.plist
<key>Pushwoosh_APPID</key>
<string>1****-A****</string>
(I create app on pushwoosh site adn copy code to Info.plist but I didn't configure anything for ios on site, there is nothing about that in tutrial)
But when I start application I get info
Response "200 no error": string: {"status_code":210,"status_message":"No push token given","response":null}
It enters ad OnRegistered callback but token is empty. Does anyone what is wrong ?
( I done like on tutorial link, there is no need to do anything with certificate in tutorial)
The provision profile you use must have push notifications enabled on that. You need to edit the mobilepovision from the Apple developer portal and add push notification.
"Blockquote I done like on tutorial link, there is no need to do anything with certificate in tutorial"
Have you configured Pushwoosh for your application according to Pushwoosh iOS configuration guide?
Related
I’m creating an App ID for a Notification Service Extension
Do I need to add any capabilities to it?
Its only purpose is to download the image for the notification. I don’t think I need to.
Currently I'm able to build into my device without enabling any capabilities in Xcode. Although when I look into the provisioning profile that Xcode built itself, I see Keychain Sharing enabled.
I also saw this tutorial and the tutorial goes with enabling 'App Groups'.
While this other tutorial goes with enabling App Groups along with Push notification. I don't think I need App groups because I don't need to pass any values, just updating the notification is all I need.
I didn't find anything in the docs that mentions what's the correct approach. A friend told me he got his to to work without enabling anything, so I'm very confused.
Basically, you don't need any capability for notification service extension.
Several of my applications work without any capability.
One of them use app group. I need to enable it to share the log files of main application, then load it from notification service and push it to server side when receive a silent push.
Few of them need keychain sharing, so that I can get the key to secure communicate with server side from notification service.
I try to work with passbook. SO as i understand from guide i need to create certificate, generate json and than i need to upload passbook to my server, after that if i open page in safari from iPhone i can see my own passbook in passbook app.
But is it way to get passbook on button click on my app without opening safari?
Please, correct me if i've error on work logic with passbook
Yes. You will need a server that can create the pass, and your app will need to call your server to request the pass. Then your app needs to use the PKPassViewController to display the pass to the user so the user can add it to their Passbook. See the Apple Passbook Programming Guide: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Introduction.html
I am using Windows Azure Notifications Hub to create a push notifications service for my iOS game made with Unity3D. I only want simple notifications like informing about an update or a new feature.
But I am having some issues. I am following the tutorial Get Started with Notifications Hubs.
I did everything except the sending notification part, because I don't receive any token.
Moreover, I can't add the Windows Azure SDK into my application because I don't have any AppDelegate.h or AppDelegate.m in the XCode project generated by Unity3D.
When I call in Unity3D RegisterForRemoteNotificationTypes I don't receive any token back. And I think it's the first main problem.
I don't know where the issue comes from. Should I use another service ? How can I solve the issue as I don't know where does it comes from ?
Thank you very much !
If you are asking for push notification permissions make sure that you haven't accidentally denied this permission at some point as iOS will only show this option once.
You can check and see the status of push notification permissions in the Settings menu of your iPhone/iPad.
If you are willing to spend a little money you can get the etcetera plugin from prime31
that can help you get a token and also provides access to other native APIs.
Regarding the lack of a AppDelegate.h file from the XCode project, this is because Unity doesn't generate 2 files: one for the app delegate and one for the controller, they are in the same file called UnityAppController.h/m.
Note: is not trivial to add cocoa touch controls using this class if this is what you want.
I'm still new to iOS dev.
And I'm very, very new to whole APNS idea. I followed many tutorials, and didn't go so well.
I'd like to ask some questions.
Can I use same .certSigningRequest file for dev/dist/apns certificates? Does it matter if some of this certificates from this .certSigningRequest have been revoked?
When I export my key in keychain to .p12 file, can I use this one for both dev/distribute version?
If my server open port 2195, by giving .pem generated from above cer, my server should be able to send push message, right?
How can I unsubscribe/unregister from my device and/or from server/apns service? I mean when I need to remove, and try to build&run the code again.
4.1 How does
[[UIApplication sharedApplication] unregisterForRemoteNotifications];
really work? Does it tell apns not to send message/just turn it off? How can my server/provider know if device need to unsubscribe?
I find this tutorial really useful: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1
And here some questions I have about what I encountered.
1. The sample app from the tutorial worked fine, using both my laptop & my server to send a message. But after a few days, it doesn't. (the response is still 'Connected to APNS Message successfully delivered', but the message never reach my device)
What could be the cause? My friend have revoked a dev cert? (I shared acc. w/ my friends) Or I reinstall the app? I also tried method unregisterForRemoteNotifications & register again, but nothing happens.
2. I also tried https://apphq.shephertz.com for a provider. This one requires .p12 key file in their format. (link) I have another project (this one is unity) register apns thru the app. It seems fine since I can see device token & user store in the web. But when I tried to send message, I got an error, like
iOS KeystoreException Device ID : <my-device-token> : Invalid keystore password! Verify settings for connecting to Apple... Does anyone know what this mean?
Sorry for my poor English.
I used Cordova PushNotification Plugin to add push notifications to my PhoneGap app (this plugin). It worked when I used a simple php script with a particular device token to push a notification (with this script).
I did this for one device, but I know it's a little bit different when it comes to multiple devices. So, is there any plateform that allows a user to manage push notifications (like https://parse.com/products/push) ?
Thanks for your answer :)
Yes, there's a platform that's perfect for what you want: pushwoosh. You can easily add it to Phonegap.
**EDIT for more information for iOS you can search here:
iphone configuration guide
SDK integration
These are the steps you must do:
First you must register in Google APIs site, select Services: https://code.google.com/apis/console/
Turn the Google Cloud Messaging toggle to ON
In the Terms of Service page, accept the terms.Now you need to create the Server Key
Press “API Access” button
Press “Create new Server key”. Either a server key or a browser key should work. The advantage to using a server key is that it allows you to whitelist IP addresses.
Press “Create”.
You can find your GOOGLE_PROJECT_ID from the URL in your Google API console. Usually it looks like this: https://code.google.com/apis/console/#project:12345678912:access In this example, it would be: 12345678912
Enter in Pushwoosh copanel: https://cp.pushwoosh.com/
Create or enter in My Apps menu
When you enter into an app you'll see the Application code in that page or in the navigator's url and this will be your PUSHWOOSH_APP_ID
Download de SDK and insert it in your project.
Change the pushnofitication.js to point to your project ID and Pushwoosh app.