I am using Ti.App.getArguments() to retrieve the query string in a custom URL called from Safari. If my app is not already running, this works fine. However, if the user switches apps and ultimately calls a URL from Safari again my app resumes by I can't detect the URL passed.
I tried this:
Ti.App.addEventListener( 'resume', function(e) { Ti.API.info('Resume: ' + Ti.App.getArguments()); });and the console displays "Resume: [object Object]" instead of returning a string as occurs during app.js startup.
I don't want to completely disable multitasking and force an exit just so I can detect the arguments in a future URL call. I want the user to be able to pause and resume, be if resume was due to a launch from Safari, obtain the new URL. I was hoping to do this by checking for a change in getArguments().
Any other way I can accomplish this objective?