I am building an Ionic app that uses the camera plugin, and I am having problems with getting the data to come back from the camera. As the Capacitor docs on the Camera plugin (In the paragraph above the variables section) say, the app will sometimes be "terminated" in the background and so when it returns to the app, you need to listen for the "appRestoredResult in the App plugin" to get the camera result. The problem that I am having is that this event never seems to fire.
I added listeners for the following events: backButton, pause, resume, appRestoredResult, and appStateChange.
backButtonworks, and shows the toast notification (which is what I was using to test to see if the events were fired).pauseseems to only be fired if I press the "home" or "opened apps" button (the ones on the phone, not part of my app).resumeonly fires when I return to the app after thepauseevent successfully fired. This event should also fire when I come back from the camera as well, shouldn't it?appRestoredResultdoesn't seem to fire ever. Which it should fire after returning to the app after the camera (if the app was terminated during the picture taking).appStateChangefires when Ipauseorresumethe app.
What am I doing wrong?