iOS Push Notifications with Windows Azure and Unity3D - ios

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.

Related

Does a Notification Service Extension need any capabilities?

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.

Bluemix Push Notification service iOS SDK

While using the latest Bluemix Push Notification service's iOS SDK, is there a way to specify a userId during device registration? The current documentation only addresses tag based notification subscriptions and basic notification subscriptions, but I'm looking for a mechanism to specify the userId via the Push iOS SDK.
Note - I've read this issue posted previously but it addresses registration via REST calls
At this time the Bluemix Push Notification SDKs do not support userIds due to a security loophole that was encountered in the original implementation. It is my understanding that adding secure userIds is a goal for the team and I am currently trying to get in touch with them to see if there's anything I can relay with regards to an ETA.
At this time the REST call work-around is the only one I know of.
#sunil32 The mechanism to specify the userId via the Push iOS SDK is available in the latest SDK, you can give a try by updating the pod or carthage.

Push Notification Testing Workflow [iOS]

I have hit a dilemma and don't know how to go about this problem.
I have an application right now being tested by a good amount of people. Within this app, I have push notifications set up. No problem with them at all. Everything is going great.
I hit a problem when I want to test versions that are in build currently. If I send a push notification to test certain features, they get sent to everyone currently with the app. Yes, it makes sense. But how do I go about setting up a workflow where I am able to have separate push notifications for live versions of the app and pre-release versions?
I use Parse for the push notifications.
Use advanced targeting. Just enumerate device tokens you need to send push notifications to in where clause. Check out this sample in parse.com forum.

Razer Nabu iOS Authorisation

I'm trying to setup a test iOS app to see what I can do with the Razer Nabu but I'm struggling with the patchy documentation. The example for authentication only mentions a 'fitness' scope and with that I don't seem to be able to send a notification to the band (the main thing I'd like to try).
When I try and send a notification I get Operation 36 returned and no notification on the band so I assume that means it failed (return codes from the SDK aren't documented it seems).
Does anyone know if there is a different scope for notifications? I tried 'notification' and 'notifications' but they resulted in failure to authorise in the Nabu Utility app.
Any help or pointers to documentation/samples/guides I might have missed would be very helpful!
NB I managed to get authorised with the 'fitness' scope and read some fitness data so everything's working except for the notifications!
Having got in touch with the Razer support guys and talking to this lovely chap called Brandon the issue was that I had the Nabu Utility app from the App Store and the version from the developer site was actually more up to date in this respect, so getting that one installed (and uninstalling the App Store version) made everything work correctly!

iOS Push Notifications using NodeJS

I have a requirement to implement the server side code for pushing notifications to an iOS app. I have followed the link below.
https://blog.engineyard.com/2013/developing-ios-push-notifications-nodejs
The problem is I always get 'Insufficient credentials' message. I've also tried with another node.js module by name 'apn' but with no help.
Has anyone tried either of these modules successfully? Are there any other alternatives?

Resources