Weird behaviour of opening google translate dialog (tap to translate) in nativescript app


#1

Hi,
I found a weird behaviour of opening google translate app dialog (tap to click https://support.google.com/translate/answer/6350658?hl=en)

when I open that dialog this event application.AndroidApplication.activityPausedEvent will fired but when I close that dialog I expected the (loaded) event of nativescript to be fired but it doesn’t.
This is important because I do multiple things like add the guestures and … . and release them in onPause event of activity so after closing that dialog lots of features of apps will not work. and those parts should move to activity resume.
why (loaded) event not works in that situation?


#2

Hi @habibkazemi
Have you tried implementing
application.android.foregroundActivity.onActivityResult method?

That is the method that will be called when you return from the translate app’s activity.