21 Jan 2013 11:30 AM #1
Unanswered: Open google play in "Iframe"
I have to integrate an external link(http://apps.blutrumpet.com/products/...51a7e/featured) into my sencha app. I used an "iframe" to load the external link page in a panel and it works well, the external page can be loaded as wish. And in the external page it has a "INSTALL APP" button which will call the google play app or open an google play link on the android device. It works on my device, when I access my app page though the mobile browser.
Here is the external page.
But when I packaged it as an native app and install it into my device, the "INSTALL APP" button on the external page(show out in an "iframe") unfortunately it does not work. When I click this button, the below information will show out.
Webpage not available
The webpage at market://details? id=com.priceline.android.negotiator&referrer=utm_source%3DBlutrumpet%26utm_medium%3Db688717e-782b-42f3-85ad-9e09a4351f24%26utm_term%3DBluTrumpet%26utm_campaign%3DMABLUTRUMPET||ANDROID%26utm_content%3DAD-X might be temporarily down or it may have moved permanently to a new web address.
Make sure you have a data connection Reload this webpage later Check the address you entered
Thanks so much.
23 Jan 2013 7:16 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I would stay away from iframes. Interactions won't work like scrolling.
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
7 May 2013 5:28 AM #3
Ok for staying away from iframes... Any alternatives ?
7 May 2013 6:00 AM #4
The only way to do this is to wrap your app in phonegap and use the childbrowser plugin.
7 May 2013 6:21 AM #5
Thanks for the answer. But my problem is that I'm working on Windows 7 and I need to package my apps for iOS devices (which is not possible with Phonegap on Windows).
For now I am able to scroll horizontally using the code below but not vertically.
html : '<div style="-webkit-overflow-scrolling:touch; overflow:auto; "><iframe width="100%" height="100%" src="http://www.mywwebsite.com"></iframe></div>'