Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Push Notifications

I have implemented push notifications with urban airship in an app, the problem I have is that I would like to give the user the option in the app settings to turn them on and off.

How do you turn off push notifications?

I tried the following, assuming that the lack of listed services would be the answer but it didn`t work.

            types: [
                Titanium.UI.createAlertDialog({title:'Pure Acquisitions', message:'It has not been possible to turn off Push Notifications. ' + e.error}).show();
— asked September 29th 2010 by Derrick Huth
  • iphone
  • notification
  • push
  • registerforpushnotifications

3 Answers

  • I also have the same question.

    I was wondering if the way to do it is to turn it off at the server that is actually talking to Urban Airship. If you remove the device ID from the call to UA a push notification wouldn't be sent.

    Does this make sense?


    — answered October 31st 2010 by Gary Thompson
  • You must create a xhr request sending Titanium.Network.remoteDeviceUUID to the API of urbanairship

    this way you will be able to delete (or re-register) an iPhone

    — answered October 31st 2010 by Stephane Pelamourgues
    1 Comment
    • I have done as you suggest, but to be strict it does not completely answer the question.

      De-registering the phone with Urban Airship will stop notifications being sent to the phone, but, it does not actually make the phone comunicate with Apple and say that it does not want to receive notifications.

      It should not be a problem as I control the entire system, but the solution above does nothing to stop me turning push notifications back on without the phone owners consent as UA keep a record of inactive UUIDs.

      — commented November 1st 2010 by Derrick Huth
  • Give a try to my Titanium Module : PushClient

    I works with iOS (APN) and Android (GCM).

    — answered July 28th 2014 by Arley Andrada Maria
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.