Benswana
Benswana

Reputation: 29

Using a UIwebview app to get the UID from the device for apple push notifications

I have a web app which I need to send apple push notifications to. I was thinking if I set up a login screen specifically for the web view to point to, which included a request for the device UUID on post, for the purpose of apple push notifications. So can you ask the device for its UUID from a page being viewed in ui.webview?

Upvotes: 1

Views: 402

Answers (1)

Simon McLoughlin
Simon McLoughlin

Reputation: 8465

There are a couple of things wrong with your question. Firstly apple deprecated the UDID, which was never used for push notifications anyway. You get a push token when you sign up for push notifications.

Secondly you can't send push notifications to a web app or a webpage running in an iOS app, you need to implement this in objective-c in an iOS app. There is no other way around it.

I suggest you read the apple docs / tutorials on this as there is a lot to learn. Heres the main overview: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction.html

Upvotes: 2

Related Questions