Titanium .How to Register device token automatically for push notification using urban airship? - push

Hi Titanium developers.
How to register a device token as soon as you open an app? like any regular app that supports push notification.
I checked kitchen sink examples and urban airship but this will need clicking on a button to register the device.
Thanks.

Take a look at the guides for Appcelerator Push Notifications through Urban Airship. If you want to target Android right now, look for where it links to UrbanAirship.js.
Then when your app loads, you can register their device for push notifications. I hope this helps! Let me know if anything comes up or you have trouble understanding what I've linked.

Related

Can we send push notifications to apps that use our SDK?

Lets suppose some app developers use our SDK. Can we send push notifications to devices that use our SDK independently, without the help of hosted app?
I know that push is unique to every app , multiple push keys , settings can't be made.
But I just like to know if any other options are available.
Our goal is to send push for devices that use our SDK.
Thanks.
This is not possible using Apple Push Notifications. Sending an Apple Push Notification to an iOS Application requires a certificate that is unique for each application. You would need to receive the certificates from the developers of those apps.
In addition, the apps would have to register to APNS and send the device token to your server. This part can be done as part of your SDK, assuming the users of your SDK call some SDK method that performs the registration and sends the token.

File Missing Error on Apple Push Notification

Hi I am configuring APNS to my app with help of Urban Airship. I successfully on notification on my app but can't set for Urban Airship. My App in urban airship show me 0 device registered, and i am getting many warning on Airship files.
Above image is screen shot of warning. I know i am doing silly mistake but don't know where. Also my Device token is not registered and i am not getting any device token. Kindly help me on that. Thanks in advance.
Try to remove all Urban Airship files from project and add them again with "copy files" option.

How Apple Push Notifications Deliver to the User in iPhone app?

Am developing an iPhone app. In my current iPhone app i want to integrate APNS that we want to send a messages to the user. I gathered information about APNS. But, still i have some doubts on the APNS.
How APN works that means how the push notifications showing to the user?
If our iPhone app get closed from Background, the Apple push notification will work or our app should be in run?
What will happen if we send a notification to the user but,if the user is in offline. The message will deliver to the user once the user gets online (Get network connection) or the message won't show to the user?
Push Notifications will be show the user if the user doesn't open the app in their iPhone?
Can anyone please guide me on these doubts? I hope on you friends. Please help me. Thanks in advance.
I think you did not follow Apple developer library instructions. I have doubts about your understanding of APNS and its working.
When you send the notification to user, and his cell is off or not connected to the internet, he/she will get message/notification when his/her cell will turn on or connect to the network.
And Push Notifications also work when your application is in backGround or user is not using the application.
Hope this information can clear your confusion, you should look in to the apple developer videos and SDK about push notifications.
Also this is SOreadytohelp.
You asked quite a few questions. I'll try to answer some of them as well as I know:
How APN works: You send a message to Apple's servers with the specific device ID. Apple will deliver that message to the iOS device. (You likely want a more specific answer, so please ask.)
If your app has been allowed background app notifications, then they will be delivered in the background. (The user can enable/disable this)
If the particular iOS device is not connected to the network, notifications will be queued. But, identical notifications will get discarded and only the most recent will get delivered. See: Quality of Service
Yes (basically the same answer for 2).

iPhone: Is it possible to send Push-Notifications from a website?

I'd like to be notified of certain events on my webserver with a push notification from my website to my iPhone. Is this somehow possible, or do I have to install/create a special App for this?
In order to use Push Notification it would have to be a native iPhone app on your phone. You might be able to set up some sort of email notification coming from your website and turn on push notifications for your mail client on your iPhone.
In regards to #gnuf's post (Sorry it wouldn't let me comment on your post) Your web server can act as the Provider of Push Notifications but will still require a native application on the phone to receive the notifications.
You can definitely send notifications triggered from a website: you just have to hook up the backend to do so. See this previous post for more information.

Apple push: does it need an application at all?

Do we need to install an app to receive some push from a service ?
Is there a way to register an iphone somewhere (website / apple server) without having an app installed on the iphone to register to the push service ?
Apple Push Notification Service is to be used with native iOS applications. Without an application APNS cannot be used.
you are saying you want to push a message to a particular iphone, but not have it related to any app? This is basically a text message, and you could do this from a server remotely using SMS.
Yes, if you want to use Apple Push Notification Service, you will need an app.
But go have a try at notifio.com