Ionic capacitor hybrid mobile application - ionic-framework

I want to create a hybrid mobile app using ionic capacitor. When user logs in the app should open the main angular app in a hidden webview to initialize the angular app. The webview should be hidden for this time. After this when a user clicks on any links in mobile app, it should open in the webview and this time the webview should be displayed. The webview should open in the app container and not in the browser window (like InApp browser). Please help me if anybody have explored this kind of solutions.
My existing app is built using Xamarin and its built on the above concept.
I have tried the InApp browser but it does not give a good impression to the end user expecting a complete mobile app.

What you want to do is more or less possible if I've understood you well. I've done it in my job. We have a ionic app, but then there are some native screens developed natively for Android (with Java) and iOS (with Swift). With ionic you can call native code from Javascript. For that you need to make your own local Capacitor plugin: https://capacitorjs.com/docs/plugins/creating-plugins
In a plugin, the ionic Javascript function will trigger a native function (Java/Kotlin for Android - Swift/ObjectiveC for iOS). Once there, you can freely create native screens (Android = Activity, iOS = Storyboard/Controller) and then launch your native screens in the app. In our project most of the app is ionic, but we developed our own native screens such as a PDF Viewer, a Web browser, a QR scanner, etc.
But an app is not like a website, an app is a stack of screens. Which means that everytime you access a new screen, it's added to the top of the stack and the user can go back to the previous one. So, ionic will launch first. Inmediately after starting the app (or whenever you want) you can move the user to a native (android/ios) screen. However, if the user presses the native android back button, he will come back to ionic. If you want to prevent that, you need to code that behavior yourself (google android prevent back button). Likewise, you "can't" make the user go from the native screen to ionic, you can bring him back to ionic by navigating back programmatically.
Perhaps you can also change the launch activity to use a different one, and then later launch the ionic activity with native code. But I haven't done this myself and it could break ionic, so I can't advice you through this path.
I hope my answer helps, but I'm not sure I understood what you want to accomplish.

Related

Dynamic widget builder

am working on a time management app project in flutter I want the app to detect the apps installed on the user device and reveal them on the screen automatically, is there any way to do the front-end part of the work and how?

MediaDevices.getUserMedia() on IOS, android native app by ionic?

I've made voicecalling/videocalling/screensharing app for browser by webRTC/node.js/socket.io
And making PWA application for mobile users by ionic now.
Then, I can get user's (video and so on) track using MediaDevices.getUserMedia() on basic browser app and pwa
But unable to get on IOS, android native app created by ionic.
Maybe, I guess this is since MediaDevices is webAPI, and ionic is not supposed to translate for that. But I'm not sure, I have really limited knowledge about this.
does someone know there is possible way? Or simply it is impossible with ionic?
Thank you very much

Flutter Focus App That Is Not In Foreground

I'm using the URL Launcher flutter plugin to launch a browser with a url. How do I bring the Flutter app back to focus after viewing the URL?
When you use URL Launcher, you invoke and give control to the operating system. Only the user of the mobile device can navigate back to the Flutter app.
If you want more control, you should navigate to a custom native UI that you control, and which is part of the Flutter app itself. For an example of such interaction between Flutter UI and native UI see this:
https://github.com/flutter/flutter/tree/master/examples/platform_view

How to make a plugin like app in iphone

I want to make an plugin like app in iphone for mobile web browser, in which i want to use safari (or any browser) current link and also link which is present on the web page, when i click on it my app should invoke for using targeted link.
I know plugins are not supported in mobile browser,
Can anybody have any solution without jailbreak?
Thanks in advance.

Jquerymobile HTML5 Iphone App Add to Home screen

I'm creating a Mobile App with JQM and JSP I'm using Bookmark bubble to do this, but I just want to ensure I understand what is happening behind the scenes here.
Is the static HTML generated by my JSP saved locally on the iPhone?
Does clicking on the APP always get fresh info from my online server or does it cache?
I'm assuming it still uses Safari to render? And just hides the toolbar etc?
If instead of hosting this online, I packaged it as an Apple App and it went on App store,
would the device still use safari to render it?
Thanks!
Documentation is at: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html
It's possible to cache the page(s) locally.