How to open a url in sencha touch panel? - sencha-touch-2

I developed a twitter mobile web app using Sench Touch 2. In my iPhone, I open it and add it to homescreen. When I click a link from the app, it will jump out of the app and open the url using Safari. When I return to my app, it needs to reload itself again. So, I wanna know is there a way to open a link in my own app using another panel view?

If you build your app with phonegap, there is an entry in 'config.xml':
<!-- ios: external links should open in the default browser, -->
<!-- 'true' would use the webview the app lives in -->
<preference name="stay-in-webview" value="false" />

Related

Force in-app deeplink url to open in chrome instead of android app

I have deeplinks in my Android app implemented like this:
<deepLink app:uri="acc-web.dotoo.app/en/dotoo/{dotoo_id}" />
Now I have some parts of our product on our web-app only, not yet on the android app. One of those functionalities is to buy tickets, for this the user has to go to the web-app that uses this url:
acc-web.dotoo.app/en/dotoo/{dotoo_id}?show-checkout-modal=true&email-address=${meInteractor.user?.email}
Which is matched to open the app.
When the user taps this link in the android app, it opens the android app again instead of the web-app and the user is in a loop. How can I fix this?
I open the browser like this from my app:
val browserIntent = Intent(Intent.ACTION_VIEW, Uri.parse(localePath))
startActivity(browserIntent)

React Native Expo Dynamically Created Components Render in Web Browser but not on iPhone

I'm creating a React Native controller app where buttons can be generated by the user.
There is a default template that is generated if the user wants to create a controller from a template.
When I go to view my app on my iPhone 10, the dynamically created buttons do not show.
However, when I open it in the web browser, the default layout is generated and everything is fine.
Not sure why this doesn't work on the phone, but I am using Expo to launch the app for my phone and the web browser.
(Note that the back button is not dynamically generated)

Firebase dynamic link fails to launch iOS app during password-less auth

Firebase is sending the password-less auth email correctly from my app via a 'Sign up' button, the 'magic link' in the email is taking me to my dynamic link domain, but I'm getting stuck at that point and the app is not being opened.
I've got an Ionic 3 application built for iOS using Firebase for the back end. I'm trying to implement Firebase password-less auth and followed this tutorial:
https://medium.com/#vivek040997/how-to-implement-firebase-email-link-passwordless-login-in-ionic-4-for-android-4c61f331c4a0
I've added my iOS app to Firebase, and in project settings, added the bundle ID, 10 char. app ID and 10 char. development team ID. The app has been created on App Store Connect, although it's not live in the App Store yet.
I've placed the GoogleService-Info.plist file into the root of my Ionic 3 project.
I've enabled email/password and password-less auth in Firebase.
As per the tutorial, I created a new index.html page (configured as a single page app using Firebase tools with some simple "logging in..." text) and ran '$firebase init hosting' and '$firebase deploy'.
I enabled Firebase dynamic links through my Firebase console, sticking with the simple 'my-app.page.link' domain.
I installed the Firebase dynamic links plugin for Cordova by using:
$ cordova plugin add cordova-plugin-firebase-dynamiclinks -- variable APP_DOMAIN="my-project.web.app" --variable PAGE_LINK_DOMAIN="my-app.page.link"
I was sure to use the correct project app domain (from hosting) and page.link domain. My package.json includes:
"cordova-plugin-firebase-dynamiclinks": {
"APP_DOMAIN": "my-app.web.app",
"PAGE_LINK_DOMAIN": "my-app.page.link"
My config.xml file includes the correct values, eg.:
<platform name="ios">
<preference name="GoogleIOSClientId" value="my-value" />
</platform>
<platform name="android">
<preference name="GoogleAndroidClientId" value="my-value" />
</platform>
I also installed the Ionic native plugin:
$npm install #ionic-native/firebase-dynamic-links
The plugins seem to be working correctly as I built a simple page to capture an email address and send the 'magic link' email. That works. I'm receiving the email correctly.
When I click on the magic link on my iOS device (opens in Safari), I see a 'preview.page.link' page with my app name, a little checkbox saying "Save my place in the app. A link will be copied to continue to this page." and an 'Open' button.
Clicking that button takes me to my Firebase hosted index.html page with the "logging in..." text I added, but hangs there. The app does not open so I just stay in Safari on that page.
I'm stuck now :(
No idea how to debug this further.
Any ideas how to get the redirect to open the iOS app correctly? Thanks in advance!

Open react native app from email link for reset password implementation

I have implemented a react native app with deep linking implementation. I have successfully open my app using
adb shell am start -W -a android.intent.action.VIEW -d sports://sport
this command open app in simulator, So deep linking concept working fine.
But how to open the app in mobile while clicking on email link.
Is anyone know how link is build for sending in email and once i click on email link from mobile my app open?
I have also installed "Deep link Tester" app from google app store and running same link on it which will opening my app successfully.
Code for Android setup
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="sports" android:host="sport" />
</intent-filter>
I have added intent-filter in activity tag of AndroidManifest.xml file.
What I want to achieve:
When user press forgot password from mobile app, I will send email with token for reset there password. So when user click on email link I want to open my app and redirect him to reset password route
What is problem:
I am not able to open react-native app from mail
I am able to achieve deep linking in react native with help of Branch.io provide solution for deep linking for mobile app
Solution
I follow step given in below link of branch.io
React native implementation for deep linking with branch.io
With this step now i am able to open my app from emails with route implementation for open different pages in my app.

iOS App & jQuery Mobile Site - Include JS file ONLY if page is viewed in native iPhone app

I have a mobile website built using jQuery Mobile. I am currently designing an iOS native app with a single webView to display this mobile website.
PROBLEM:
If the jQuery mobile webpage is viewed in a normal mobile browser, I want all to function normally. BUT if the webpage is viewed using the webView in the iPhone app (not Safari.app) I am designing, I want to include an additional line of code on the webpage to pull in some custom JS.
Here's what I want to be added to the page ONLY IF viewed inside of my iPhone app's webView:
<script type="text/javascript" src="http://www.example.com/mobile/js/custom-jqm-defaults.js"></script>
This code needs to be pulled in (according to the jQuery mobile docs) before jQuery Mobile is loaded. Is this possible? And if so, could you point me in the right direction and give me some code?
EDIT
I found this link whereby Facebook detects if they are being viewed WITHIN an app. Is there another way to do this obviously NOT using the FB API? Here is their code:
if (FB.UA.nativeApp()) {
// Hide your credits stuff
}
You can change the user agent in your NSURLRequest, and then check for that agent on your server.
Changing it app-side is easy.