Chase,
I'm not sure if you mean that the app goes to a blank screen when the link is clicked, or after you exit the messsaging app and return to ARIS.
I had an issue with a blank screen and a back arrow when testing on a device that had no SMS app installed. If the link is opening to a blank screen, I would double check to make sure that the device you are testing on has an SMS app installed.
I also get a blank screen with a back arrow when I return to ARIS after closing the messaging app. If this is what you are talking about, as far as I can tell, there is no way to immediately send them directly to the Map upon returning to ARIS, but you can do it in a roundabout way:
1) Make the Map a tab
2) Create a blank plaque called "Exit to Map" (or whatever you want to call it)
3) Place the following code in the plaque:
Code: Select all
<script type="text/javascript">
var ARIS = {};
ARIS.ready = function() {
ARIS.exitToTab('MAP');
}
</script>
4) Place the "Exit to Map" plaque in a scene.
5) Place a lock on the "Exit to Map" plaque of "Player has already viewed plaque [name of plaque or object that opens SMS app].
What this does, is when the user taps the back arrow, the lock causes the "Exit to Map" plaque to pop up and execute the JavaScript to immediately exit and redirect to the Map.