pushnotification signature into variable
Posted: Thu Apr 24, 2014 1:18 am
Hy!
I would like to send my device's id to my own page. The pushnotification is working correctly. The problem is when i put this id into a variable (deviceID), i cant use it in a different command.
my code is the following:
local sBrowserId
global deviceID
on pushNotificationRegistered tSignature
put tSignature into deviceID -- put the id into a variable
end pushNotificationRegistered
on startBrowser
mobileControlCreate "browser"
put the result into sBrowserId
mobileControlSet sBrowserId, "visible", "true"
checkConn
mobileControlSet sBrowserId, "url", "http://192.168.0.139/Devices/Auth/" & deviceID -- concat the url and the variable in this case --- device id is null :/ why?
end startBrowser
on preOpenCard
if the environment is not "mobile" then
exit preOpenCard
end if
startBrowser
resizeStack
end preOpenCard
can anyone explain me what i doing wrong.
Kind Regards
George
I would like to send my device's id to my own page. The pushnotification is working correctly. The problem is when i put this id into a variable (deviceID), i cant use it in a different command.
my code is the following:
local sBrowserId
global deviceID
on pushNotificationRegistered tSignature
put tSignature into deviceID -- put the id into a variable
end pushNotificationRegistered
on startBrowser
mobileControlCreate "browser"
put the result into sBrowserId
mobileControlSet sBrowserId, "visible", "true"
checkConn
mobileControlSet sBrowserId, "url", "http://192.168.0.139/Devices/Auth/" & deviceID -- concat the url and the variable in this case --- device id is null :/ why?
end startBrowser
on preOpenCard
if the environment is not "mobile" then
exit preOpenCard
end if
startBrowser
resizeStack
end preOpenCard
can anyone explain me what i doing wrong.
Kind Regards
George