first_open related code

Hii, can you please let us know that what are the steps we need to follow from app end to automate trigger message for Inactivity and first_app Open . I have gone through the documentation and created an automated message from Urban airship Dashboard but not received notification from Urban airship end . Can you please help me out if what i am missing from app end 

Didn't find what you were looking for?

New post

Comments

10 comments

  • Hi,

    If you have setup our SDK properly and everything else is working, then automation should work out of the box. Are you getting regular push notifications? Did you see a channel registration for your device?

    If you provide us with the App Key for this project we can take a look.

    Jay M.
    Urban Airship Technical Support

    Comment actions Permalink
  • I am receiving Inactivity notification but not for First_Open .Can you please guide me out how to test if first_open notification is received . Please correct me if I am wrong :  1) We have to install and launch the app 2) keep the app inactive 3) Now we should receive first_open notification . I am testing this scenario but not able to receive notification. Plz provide me the test steps for the same.

    Comment actions Permalink
    0
  • You cannot combine inactivity with first open. Is that what you are trying to do?

    Comment actions Permalink
    0
  • No, I am not able to get trigger notification for First_open. Can you please guide the test scenarion for the same i.e. how to test this notification .

    Comment actions Permalink
    0
  • Can you please help us to know why we are not getting first_open trigger notification on ios platform. App id is :   nMoCQZ1BRHOijQAFpyujww. Looking forward for your response. Thanks.

    Comment actions Permalink
    0
  • Thanks for sending the app key. 

    I've looked at your "first_open_8.36" automation. It looks to be set up correctly. 

    It is set to send a push notification after an hour, but a push won't display if the app is in the foreground. 

    The sequence would be to install the app fresh (delete it if you have it installed and reinstall it), open the app, accept push notifications prompt (and if you have it set up that this happens only after account login make sure to do that too). Then leave the app (but don't close/force quit it) so it runs in the background and see if you get a notification after an hour. If not, you'd want to check if the app is registering a channel ID. 

    Here is [How to find the Channel ID using the Channel Capture Tool](https://support.urbanairship.com/hc/en-us/articles/360006723352-How-to-find-the-Channel-ID-using-the-Channel-Capture-Tool)

    Jay M.
    Urban Airship Technical Support

    Comment actions Permalink
    0
  • As per the steps given by you, we have tested the app in same environment. We are not able to get the first_open push notification (not even in background state). We have checked the channel Id with the following code. We are getting channel Id in response and it is printed to the console.Can you please suggest if there can be any other reason on code level which is causing this notification failure.We are able to get this in android side but not in ios side.Looking for your response. Thanks.

    NSString *channelID = [UAirship push].channelID;
    NSLog(@"My Application Channel ID: %@", channelID);
    Comment actions Permalink
    0
  • I would need you to provide me with the actual channel ID number so I can take a look and investigate. 

    If you follow the instructions here: https://support.urbanairship.com/hc/en-us/articles/360006723352-How-to-find-the-Channel-ID-using-the-Channel-Capture-Tool

    And use this token: M2MxODAzNzYzOTMxNzQxMjAzMGMwYzA1M2U2NzI2NzE0MjEwNDMyZTE2MjY

    You should be able to get the channel id directly on your device. 

    Comment actions Permalink
    0
  • Sure As per user your steps the channel id i received using channel capture tool is :      bf53c86b-89c0-4893-bf4f-3e139f57ae05 . Thanks.

    Comment actions Permalink
    0
  • Hi,

    Looks you have email support with us so I'm going to turn this into a ticket so we can address this and your other post together and more efficiently. 

    You'll get an email you can reply to or click the ticket to manage it online. 

    Jay M.
    Urban Airship Technical Support

    Comment actions Permalink
    0

Please sign in to leave a comment.