Iphone App - how to reproduce inapp browser actions ? - javascript

I have a problem with an IOS app that is being developed.
We agreed (with an outside development company) to develop a hybrid application : both webview and native code. My website : http://youmind.it is perfectly responsive and the functionnalities of my website work fine (imagine a feed of photos that you can like, comment and share). You can like, comment, report, share a photo from any browser on a mobile phone.
On the first tests on the app however, the functionalities on the webviews really dont work. Either something happens visually but is not registered in database, or nothing happens. The dev company tells me this is because of my website which doesnt work on the browser inapp. Problem is : they dont give me ways to test my website on such a browser, therefore no way to tests changes.
We checked that javascript was correctly enabled on the Iphone APP, and now I am totally powerless... Do you know If I can reproduce (say on a computer, or even on an Iphone), the behavior of my responsive website, in order to make tests and validate that there is a problem on the website side (and not on the appside) ?
Thanks for your help !
Martin
Note : website works with python / django. Not sure it can help.

Related

Wordpress website broken in Facebook mobile browser

i'm facing a weird issue, my website doesn't appear well (without CSS & javascript) only in the Facebook mobile browser.
In Desktop everything is OK, in Mobile with Chrome or other browsers is OK.
But when i open my website link or post link inside facebook in-app browser it appears with no CSS & Javascript.
Screenshot of issue >> https://i.ibb.co/R3R3FLd/222977963-228682545788525-3749803821851752230-n.jpg
notice : I don't have a caching plugin.
i'am using Sucuri CDN, and disabled their cache.
thanks for your help
I had a look again, here is the result:
If multiple users are seeing the same issue, I'm thinking that it's related to your CDN handling, serving an outdated/corrupted version.
You might want to refer to Troubleshoot Cache Issues.

facebook javascript sdk login not working on iOS / best practices for mobile

I'm trying to allow a user to login to my webapp via facebook login using the javascript SDK. It works on desktop (safari and chrome), however the pop up fails on both safari and chrome on iOS.
The error is straight forward to chrome where the browser and OS are not supported. This issue has a work around described here. It is less clear what the issue is with safari and not seeing the pop up. The login call is called on a button click so I don't believe the browser should block it. I also tried allowing pop ups as suggested here but that solution did not work nor is it a viable long term solution to force users to change that setting.
How do folks use facebook login in production and expect it to work on mobile? Do you need to use the manual fb login? It appears that the javascript SDK doesn't work well with mobile browsers and OS's.
This is common issue among mobile browsers and you will find that it would also be in some android devices.
For precaution it is under best practice to build flow of login manually.
Go here as your link.
So yes, you will need to go with manual integration. But, it will be full-proof integration without doubts.

C# MVC Facebook application does not work in iPad Facebook application

I've written a Facebook application using Microsoft's ASP.NET MVC template. Works great from the browser on IE, Android's browser and will even work in Safari.
Inside the Android Facebook application clicking on the link to my application bounces you out to the web browser and everything is good to go. On an iPhone or iPad going to my application works fine from inside Safari. But if you run the iPhone or iPad Facebook application you get an error. Across the top it says 'Error' and the details say "An error occurred. Please try again later."
I've search the SDK docs and googled around but I've not found anything that tells me what to do. Did I miss a setting for my application? Is there some special cookie I need? Do I need to go leave my wallet at Steve Job's grave?
Any help would be appreciated.

Phonegap app working locally, not working on phone

I have written a phonegap application, and it performs a pretty simple task, it gets some JSON from a YQL link, and then displays it nicely to the user. This works excellently when I run it using Google Chrome on a Desktop, but, my client tells me that it does not work on his device which is Android 2.3. What can be going wrong? I'm using phonegap build to build to app, and they tell me that it is given internet permission, but, when my client puts the APK on the phone (its not on the market yet), does he need to do something special for it to access the internet?
Thanks a lot,
Dhaivat
in phonegap, allow external host : Open phonegap.plist -> external host and add your url or * to allow all
within the phonegap app the webapp runs under the file:// protocol - this might affect things.
you should test this at least on an emulator yourself - clients usually screw up anything some might screw up when testing ;) best would be to test on an actual device tho.
I'm not sure if this will help but I had a similar problem testing my app here:
https://stackoverflow.com/questions/17496104/json-wordpress-feed-not-appearing-in-android-studio-emulator-using-phonegap
I needed to change access origin to ="*"/ in my config.xml

market:// not supported, despite Android documentation

I'm implementing in-app purchase for an Android app from within a web view. The purchase is meant to be completed via Amazon's MP3 app. If the user does not have it installed, I want to open the Market app so they can download it before attempting to complete their purchase.
According to the official Android documentation, the following JavaScript should work:
window.location.href = 'market://details?id=com.amazon.mp3';
However, when I call that, I get a view that is blank except for a link to that link and half an upside-down Android dude poking out the top left of the view (you can't make this stuff up).
Anyone know why this might not be working? I've tested it on multiple handsets all running Android 2.1 and above. TIA for any help!
UPDATE: Thanks to #jtkendall on Twitter for this post that talks about how this behavior changed recently. Looks like this has to be implemented in native code.
Use the Http variant.
http://market.android.com/details?id=com.amazon.mp3
http://market.android.com/details?id=

Categories

Resources