Quantcast
Viewing latest article 2
Browse Latest Browse All 2

Any getArguments equivalent in resume event?

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?


Viewing latest article 2
Browse Latest Browse All 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>