I am creating a mobile application in dart allowing the company to place orders directly via their phone, once the order is finished and paid a congrat page is displayed to inform the merchant that it worked, however once back on the application when I click on any input of any page the congrat page is redisplayed and re-debits the customer all this in a loop (4 times), I never call this page in my Ontap or OnClick event and the page is not imported either.
Do you have an idea ?
I thank you !
I have tried different ways of debugging but nothing works, I do not understand where the problem comes from knowing that on
Related
I looked at several issues and was unable to find one that matched mine; apologies ahead of time if I missed it!
I have a native app, a portion of which contains a webview. The webview leads to a page that has a login. When going to the login form android autofill suggestions will pop up and upon selecting them the login process "appears" to initiate however, I'm not actually seeing my onSubmit function firing from the page contained within the webview and ultimately the page returns to the login page as the user is not actually authed. I'm also not seeing the user items populated in the contained webpages state.
Any ideas on why the autofill items are not populating in the form within the webview? Any other things I can try to debug this?
For my particular case, I was actually changing the webview's HTML in the onPause() lifecycle event to ensure the webview stopped hitting our backend; something that was creating incorrect usage stats. This functionality should actually have been placed in the onStop() as it is:
The behavior I actually wanted as I only needed to change the HTML when my app is not visible to the user.
The autofill service triggers onPause() thus making it so the HTML would be changed when the app was still visible and thus, the HTML android was trying to autofill was no longer present.
I have an ionic application that is currently based on version 4. In version 4 they switched to angular routing model and basically parts of the NavController were deprecated and I'm looking for the proper replacement for NavController.canGoBack.
To give some context I basically have an app that requires a pin code unlock prior to showing application contents, on my pin-code page I already implemented a guard to prevent deactivation (basically prevent). However, while implementing the back button I noticed that when I press the back button on the very first page. It seems to bypass the guard, and instead the screen turns blanc and then shows the pin code page again.
I have my suspicions that when I issue an this.navCtrl.back(); on it refreshes the page and it doesn't actually use the javascript based routing. So to that end I was hoping I would be able NavController.canGoBack to give me some indication if there's anything to navigate back to.
To detect if there's anything to navigate back to you will have to implement a service that saves the history of previous routes in an array.
One implementation of such a service can be found here.
The simplest would be importing
import {Location} from '#angular/common';
and then
constructor( private _location: Location,) { }
this._location.back() // this would route back if back is possible
I am trying to make an app where the user is shown a list of installed applications, each one in a separate check box. If an app is checked, and then later opened, how can I trigger an event when the app that the user selected is opened. I am a complete novice in this area, therefore code or tutorials would be appreciated, as I don't know where to start.
You want to use PackageManager getInstalledApplications() or getInstalledPackages() to get a list of installed apps.
I don't understand the following part of your question:
If an app is checked, and then later opened, how can I trigger an event when the app that the user selected is opened.
It sounds like you want to open the exact app which the user opens but that's probably not what you mean.
I have a test project that uses $getJSON to pull data from web services like Geonames and our own proprietary services. The index page uses two $getJSON calls, and they load fine both when you first load the page or press the refresh. However, if you navigate to another page and then hit the back button to go back to the index page, the page begins reloading and just stops when it hits the $getJSON calls. I've read about Android browser not caching well with the back button in 2.1 (what I'm using)- I'm fine with page reloads as long as it actually completely loads the page.
I've tried this in Firefox and it caches the index page, so there's no re-running of the JSON calls. That's why I'm asking it here in an Android capacity- is it purely the no-caching back button thing that is the problem or is there something I could change about my $getJSON calls?
Here's the page:
http://MPulsemobile.info
My experience is that the Android browser does not report events for the back button like other browsers.
Imagine you have a form containing a text field, and the text field contains, say, 3 characters.
Create a JavaScript alert that will fire on keyup() and begin deleting characters. The alert will not fire until the final key up.
I have Activity with some data displayed in WebView that I load with WebView#loadDataWithBaseURL
Then I have/click menu option that fires android.content.Intent.ACTION_SEND
Choose email from the chooser
Google email comes up (as expected)
Discard email and hit back button
Action with WebView tries to resume
Bang - I get NullPonterException at line 4380 in WebView.java if (mWebViewCore.getSettings().getNeedInitialFocus()) since mWebViewCore is now null
The only place in code where mWebViewCore is nullified is at WebView#destroy - how do I recover from this? Do I need to recreate the browser and load my data all over again, that seems pretty wasteful? I really appreciate good suggestion at this point
Well, I can tell you that I just tested using a WebView with loadDataWithBaseURL(), where the page I loaded had a link. Clicking on the link brings up the Browser application, as expected. BACK button-ing out of the Browser brings back my app with the WebView just fine, no exceptions.
So, either ACTION_SEND/Gmail are somehow special, or there is something more going on with your app.
Can you replicate the problem in a small project that you can post somewhere?