Push scheduled via API not stopping

Hi, 

I have scheduled a Push Notification via API of Python for a specific time but for some reasons after the time is passes the Push campaign is still running (in progress state) and trying to send the pushes to Audience.

Do I have to specify the Expire time? 

 

Please see the attached screenshot: https://i.snag.gy/wcxefM.jpg and advise what to do here?

 

Thanks

 

Didn't find what you were looking for?

New post

Comments

2 comments

  • Hi Jane,

    My name is Darragh, one of the Technical Support Engineers at Airship. Thank you kindly for contacting our support forums.

    The image isn't able to provide me with enough accurate information to give a 100% informed answer, but it does appear as though this is scheduled to complete at 12:20 pm Local Time on June 24th. Because it is scheduled to local time there may be some users that are apart of this segment but they're based in a timezone that has not reached 12:20 pm local time and the scheduled notification has not been completed.

    Please let me know if you have any questions.

    Kind regards,
    Darragh Blake
    Technical Support Engineer
    Airship

    Portland | San Francisco | London | Paris | New York | New Delhi

    Comment actions Permalink
  • Thank you so much Darragh for the response.

     

    Here is what I am struggling with:

     

    1- Send push notification at UTC+4 (not local time)

    2- Send the push to all selected audience despite the timezones they are in (below is the code that I am using)

     

    # -*- coding: utf-8 -*-
    import datetime
    import urbanairship as ua
     
    airship = ua.Airship('XXXXXXX', XXXXXXXXXX') 


    sched = airship.create_scheduled_push()
    sched.schedule = ua.local_scheduled_time(datetime.datetime(2019, 06, 24, 12, 20, 00))

    sched.push = airship.create_push()
    sched.push.audience = ua.push.audience.segment('d05af748-07cd-450f-a106-893715325d58') #northern-ar

     
    sched.push.notification = ua.notification(alert= 'سفاري صحراوي في درهم ', ios=ua.ios(extra={'dealid': '000000'}),android=ua.android(extra={'dealid': '000000'}))
     
    sched.push.device_types = ua.device_types('ios', 'android')

    response = sched.send()
    print ('Created schedule. url:', response.schedule_url)
     
     
    Waiting to hear from you soon!
     
     
    Comment actions Permalink
    0

Please sign in to leave a comment.