Device signature different
Mike Kerner
MikeKerner at roadrunner.com
Mon Nov 11 14:56:59 EST 2013
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."
More information about the use-livecode
mailing list