Device signature different
Mike Kerner
MikeKerner at roadrunner.com
Wed Nov 20 09:33:57 EST 2013
Mark just went back and forth with some followup. It turns out that the
process we should use is a little different:
http://quality.runrev.com/show_bug.cgi?id=11236
Just a reminder, that Apple says that you get one shot with the old token
after it changes.
On Wed, Nov 20, 2013 at 8:41 AM, Mike Kerner <MikeKerner at roadrunner.com>wrote:
> Neil has been helping me with push/token issues, and sent me a couple of
> useful links:
> 1) https://devforums.apple.com/thread/206990?tstart=30
> The old token will work for one push after it changes, and then it will
> become inactive
>
> which reinforces
> 2) https://developer.apple.com/library/ios/technotes/tn2265/_index.html
> Which states that every time you launch, you are supposed to have your app
> re-register.
>
> There is a bug with that, though, 11236, which is active, and open -
> CURRENTLY, you cannot get the token before the first card of the stack
> opens - so no preOpenStack, no preOpenCard, etc. - yet.
>
>
> Big props to Neil for working on these buggers, but that only reinforces
> something else - if you can, spend the money and become a Pro or Corporate
> member.
>
>
> On Mon, Nov 11, 2013 at 2:56 PM, Mike Kerner <MikeKerner at roadrunner.com>wrote:
>
>> I ran into this by accident, and I don't know how far back the old token
>> will work. Even on Apple's forums, this behavior is largely a mystery. I
>> have yet to receive a notification of a change, even when checking for
>> devices that have asked to not receive push notifications any longer.
>>
>> What I have taken to doing is to have the app check its token (but
>> because of bug 11236 in LC, you can't do that until you have the openCard
>> message for the first card of the stack). If the token has changed, it
>> reports the new token.
>>
>>
>> On Mon, Nov 11, 2013 at 2:37 PM, Thomas McGrath III <mcgrath3 at mac.com>wrote:
>>
>>> So what is the best way to handle this?
>>>
>>> Is it a fact that the old token will still work?? What about the one
>>> before that??
>>>
>>> Anyone else have info here.
>>>
>>> Tom
>>>
>>> -- Tom McGrath III
>>> http://lazyriver.on-rev.com
>>> mcgrath3 at mac.com
>>>
>>> On Nov 11, 2013, at 1:10 PM, Mike Kerner <MikeKerner at roadrunner.com>
>>> wrote:
>>>
>>> > I have run into this very problem. No, the token is not forevermore,
>>> but
>>> > Apple won't tell you when it's changed, and if you reference the old
>>> token,
>>> > it will still work.
>>> >
>>> > The most common way that a token gets replaced is when a device gets
>>> wiped.
>>> >
>>> >
>>> > On Mon, Nov 11, 2013 at 12:27 PM, Thomas McGrath III <mcgrath3 at mac.com
>>> >wrote:
>>> >
>>> >> on mouseUp
>>> >> put mobileGetDeviceToken() into field "PNSResult"
>>> >> put field "PNSResult" into tTest
>>> >> put 1 into i
>>> >> repeat while i<= the number of characters in tTest
>>> >> if char i of tTest is not in "0123456789abcdefABCDEF"
>>> then
>>> >> delete char i of tTest
>>> >> else -- char i of me is hex
>>> >> add 1 to i
>>> >> end if -- char i is not in.....
>>> >> end repeat --while i<= the number of characters in me
>>> >>
>>> >> if char 1 of tTest is "<" then delete char 1 of tTest
>>> >> if last char of tTest is ">" then delete last char of tTest
>>> >> put tTest into field “PNSResult"
>>> >>
>>> >> end mouseUp
>>> >>
>>> >>
>>> >> SO the token returned from this script from a few weeks ago is
>>> different
>>> >> than what this returns today.???? wtf…. But more importantly it
>>> changed
>>> >> from this morning and later this afternoon. I have three different
>>> IDs from
>>> >> the same device….
>>> >>
>>> >>
>>> >> Is mobileGetDeviceToken() supposed to be consistent to the device????
>>> No
>>> >> matter what???? or When????
>>> >>
>>> >>
>>> >> Tom
>>> >>
>>> >>
>>> >>
>>> >> -- Tom McGrath III
>>> >> http://lazyriver.on-rev.com
>>> >> mcgrath3 at mac.com
>>> >>
>>> >> _______________________________________________
>>> >> use-livecode mailing list
>>> >> use-livecode at lists.runrev.com
>>> >> Please visit this url to subscribe, unsubscribe and manage your
>>> >> subscription preferences:
>>> >> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > On the first day, God created the heavens and the Earth
>>> > On the second day, God created the oceans.
>>> > On the third day, God put the animals on hold for a few hours,
>>> > and did a little diving.
>>> > And God said, "This is good."
>>> > _______________________________________________
>>> > use-livecode mailing list
>>> > use-livecode at lists.runrev.com
>>> > Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> > http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>
>>
>>
>> --
>> On the first day, God created the heavens and the Earth
>> On the second day, God created the oceans.
>> On the third day, God put the animals on hold for a few hours,
>> and did a little diving.
>> And God said, "This is good."
>>
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
> and did a little diving.
> And God said, "This is good."
>
--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
and did a little diving.
And God said, "This is good."
More information about the use-livecode
mailing list