Sorry, where I can find Test Link button? I run your app on iPhone and when it opens on device there is a screen with Login and Search button. Could you clarify what are the steps to get to Test link button?
Sorry, where I can find Test Link button? I run your app on iPhone and when it opens on device there is a screen with Login and Search button. Could you clarify what are the steps to get to Test link button?
Hey,
There should be an Icon that looks like a chain link in the top Navigation bar(left of the home button) that will take you to the page with the test link.
The test link work correctly though, I just edited my my code so that when you navigate to the My_connections page, it will act as though I am logged in and will show the buttons that are not working.
The green "View Profile" button is the one that opens a new page but only does it inApp.
hmm, yes it does work for me now after changing my code to display as if I were logged in. After changing the code back to what it was, it will only open inApp though...
This is how I need the code to be but it only opens inApp:
This is the code after I changed it for you and it opens correctly in safari:
normally I check for a session token, if one exists, I then load the users picture from local storage. The current users user ID is stored in local Storage under "user_ID_from_REST" after they login.
connections are loaded from the database using "user_ID_from_REST". if there is no session token then local storage "user_ID_from_REST" will have no value.
I just commented out the check for a session token and set the LocalStorage "user_ID_from_REST" to my profile user ID so that the page would load for you as if I were logged in from facebook.
I don't see how this change would make the url open inApp instead of in safari?
Thank you for your time helping me out,
I greatly appreciate it!
Hello!
Sorry, I'm a little bit confuced...
Could you return you app to the version where login is required and post detailed steps on how to get to button which opens link?
The problem will not occur if I change my code to allow you to test it as you did last time. The pictures in my previous post show the changes that I made to my code in order for you to be able to test it. Those small changes that are in the pictures are what is making the window.open() use the inApp browser instead of safari.
Hello!
Sorry, we just need you to change code the way we can reproduce your problem and post steps to reproduce.
I have tried my best but I cannot change my code to so that you can see the problem. The only way would be for you to login to my app via a social network webiste (facebook, linkedIn, instagram on my login page)and make a post. I could then make a connection with you so that the url can be navigated to
The error only will occur when a user ID is obtained from facebook, linkedin, or instagram login and saved to the local storage variable("user_ID_from_REST") via mapping. This ID is saved to the database too.
"user_ID_from_REST" is used In REST to retrieve a url and other info from the database to a grid with a button.
On a button click, I use window.open(url,'_system'); to open the url.
This will only open in the inAppBrowser.
If I manually set "user_ID_from_REST" using localStorage.setItem("user_ID_from_REST", "12345678"),
then the button click will open the url in safari.
Essentially, if a url from database is retrieved using a User ID from Social Network login response, then the url will open in the inAppBrowser. If I set the same User ID manually, it will allow the url to open in Safari.
any ideas on why could this make any difference?
Hi Matt,
Where exactly do you store user_ID_from_REST value received from site?
I store the User ID received from the site by mapping the User ID value to a local Storage Variable called "user_ID_from_REST".
The value of this variable remains unchanged after the user has logged in and is used to retrieve all database posts that the User ID has made.
There is a url to the users Social Network Profile that is saved with each posting.
This url is retrieved from the database using "user_ID_from_REST" value and is loaded into a grid. The grid has a button that when clicked will navigate to the url.
As an example, if I do all of the steps above and the website response saved "1234" as the user ID to local storage variable "user_ID_from_REST". When the the button in the grid is clicked to navigate to the url, it will only open in InAppBrowser.
now, assume I have done all the steps above.
This time, before the grid loads the url from the database, I manually set "user_ID_from_REST" to "1234" by using localStorage.setItem. This is the exact same value that "user_ID_from_REST" is already set to from the website response. Now it will load exactly as the first example but this time when I click the button it will navigate to the url using safari instead of inAppBrowser.
This makes no sense to me at all because the same value is used in both examples but the url opens differently depending on how the value was saved to local storage.
My app is shared with appery.io support. name= DejaWho. This all happens in the My_connections page, "click to connect" button JS.