Hello ,
Recently, I made a Webview app. There is one major issue with it and I’m not getting how to solve it. The app is for Australia (developed in India). The website fetched in webview fetches local time to decide order / delivery status. But the webview is fetching India’s time and hence the website is not functioning properly.
Here’s my code
scene = composer.newScene() function scene:create( event ) local sceneGroup = self.view local PLAY = display.newGroup() sceneGroup:insert(PLAY) local webView = native.newWebView( 0, 0, \_W, \_H) webView:request( "My website URL" ) -- URL for website was inserted here local redRoosterImg = display.newImageRect( PLAY,"load.png",\_W,\_H ) redRoosterImg.x=0; redRoosterImg.y=0; function redRoosterLoad() display.remove( redRoosterImg ) end end function scene:show( event ) timerPlay = timer.performWithDelay(3000,redRoosterLoad,1) end function scene:destroy( event ) local sceneGroup = self.view sceneGroup:remove(PLAY) end scene:addEventListener( "create", scene ) scene:addEventListener( "show", scene ) scene:addEventListener( "destroy", scene ) --------------------------------------------------------------------------------- return scene
Someone please suggest a solution to it.