Hi Matthew,
Did you try a URL scheme to open Pages, or direct the user to buy it if they don’t already have it? The following example is for Skype:
[lua]
local function onObjectTouch( self, event )
if event.phase == “began” then
print(“opening…”)
local isAppInstalled = system.openURL(“skype://”)
if isAppInstalled == false then
--open appstore for skype if it is not installed
system.openURL(“http://itunes.apple.com/br/app/skype/id304878510?mt=8”)
end
end
return true --important!
end
– begin detecting touches
button.touch = onObjectTouch
button:addEventListener( “touch”, button )
[/lua]
The catch is, you need to put in the target (other) app’s URL scheme, and sometimes it’s tricky to determine what this value is. You could try just “pages://” or maybe “app://pages”, and see if either one works…
Best regards,
Brent