I have a remote webpage load using the native.showWebPopup API in my app. The page loads fine in the app but as soon as I click on a link (links to itunes) it fades to a black screen. What i want is for it to load up the app store app. The reason i want this loaded externally on an html page is to easily swap out links to other apps quickly without having to resubmit my app.
Here’s my code…
[code]
module(…, package.seeall)
new = function ()
– Groups
local localGroup = display.newGroup()
– Display Objects
local topBar = display.newImageRect( “images/topBar.png”, 512, 46 )
local device = ( system.getInfo( “model” ) )
– Functions
local function morePopUp()
if device == “iPad” then
native.showWebPopup(0, display.screenOriginY+44, 480, display.contentHeight - 4, “http://www.kumulabs.com/screens/insect-puzzle-screen.html”)
print( system.getInfo( “model” ) )
else
native.showWebPopup(0, display.screenOriginY+44, 480, display.contentHeight - 44, “http://www.kumulabs.com/screens/insect-puzzle-screen.html”)
print( system.getInfo( “model” ) )
end
end
–====================================================================–
– INITIALIZE
–====================================================================–
local initVars = function ()
– Positions
topBar:setReferencePoint(display.TopCenterReferencePoint)
topBar.x = display.contentWidth/2
topBar.y = display.screenOriginY
– Inserts
localGroup:insert(topBar)
– Listeners
end
– Initiate variables
initVars()
morePopUp()
– MUST return a display.newGroup()
return localGroup
end
[/code] [import]uid: 79620 topic_id: 27224 reply_id: 327224[/import]