DeviceToken not the same in Debug.Log as saved!?

Comments

6 comments

  • Avatar
    Jesper

    It seems to be an iOS8 issue. When I am on an unit with iOS8 it registers just fine but the device token returned to the app is not the same. Is there anyway to solve this? I need to get the right device token back for storing with the user. I use it for pushes between users, e.g. when a user makes a move the other user gets an push alert.

    hoping for quick solution.

    Best regards Jesper

  • Avatar
    Chris

    For now, to get this to work as required/expected, I had to redownload XCode 5.1.1, reference it with the xcode-select command and build for iOS7 (well... I did iOS 6.1)

    This made the app/plugin provide the correct device token for me.

  • Avatar
    Jesper

    Well, tried this but with no luck :-/ Seems kind of stupid that you have to go back in iOS and Xcode to make this work!? Hope there is another solution!? But thanks for the comment :-.)

  • Avatar
    Max Konev

    Do you have HWID for the old users? You might want to contact support to get a list of old push tokens=>HWID matches. HWID should stay the same.

  • Avatar
    Jesper

    OK, have been investigating further and have seen some weird things. I have created an "empty" app to test on with only the PW SDK in it (Unity3D). When running the app on my devices (ipad2 and iphone6) I do get an deviceToken, though different than the earlier deviceID, but I get one and in my PW admin I can see my 2 devices has been registered.

    Now to the weird part. When pushing these 2 devices from the admin panel or my own php script (which always has worked) no pushes is received by the devices and the 2 devices is removed in my PW admin panel?!?!? So now they are not registred anymore?

    Can someone, maybe PushWoosh admin, tell me what is wrong here?!? I am only missing this part to update my app.

    Really hoping for help on this and thanks in advance.

    Best regards Jesper

  • Avatar
    Max Konev

    What does push status say? you might need to check that push certificates match your provisioning profile. Gateway => Sandbox, AdHoc => Production. Also make sure "bundle ID" for push certificates matches your bundle ID in provisioning profile.

Please sign in to leave a comment.