You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/20 07:40:18 UTC

[GitHub] [cordova-plugin-inappbrowser] JoshuvaGeorge03 opened a new issue #613: PostMessage Run time error in Ios

JoshuvaGeorge03 opened a new issue #613: PostMessage Run time error in Ios
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/613
 
 
   # Bug Report
   I got an type error, when I try to do post message using
   
   webkit.messageHandlers.cordova_iab.postMessage and the error was Type error: webkit is undefined and not an object. This only occurs in ios and not in android.
   
   ## Problem
   I can't able to send data back to my ionic/capacitor application. 
   After investigating, I have found out that this issue only present in cordova-plugin-inappbrowser v3.2.0... And this version not rise any issue with android, but cause issues with ios as I mentioned above.
   
   So, kindly fix this issue.
   
   ### What is expected to happen?
   I want to communicate with my main app when i using inappbrowser.
   
   ### What does actually happen?
   I got an type error, when I try to do post message using
   
   webkit.messageHandlers.cordova_iab.postMessage and the error was Type error: webkit is undefined and not an object. This only occurs in ios and not in android.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   Ionic:
   
      Ionic CLI                     : 5.4.13 (C:\Users\Joshuva\AppData\Roaming\npm\node_modules\ionic)
      Ionic Framework               : @ionic/angular 4.11.8
      @angular-devkit/build-angular : 0.803.23
      @angular-devkit/schematics    : 8.3.23
      @angular/cli                  : 8.3.23
      @ionic/angular-toolkit        : 2.0.0
   
   Capacitor:
   
      Capacitor CLI   : 1.4.0
      @capacitor/core : 1.4.0
   
   Utility:
   
      cordova-res (update available: 0.8.1) : 0.3.0
      native-run (update available: 0.3.0)  : 0.2.2
   
   System:
   
      NodeJS : v10.11.0 (C:\Program Files\nodejs\node.exe)
      npm    : 6.13.6
      OS     : Windows 10
   
   
   
   ### Version information
   "cordova-plugin-inappbrowser": "3.2.0",
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ *] I searched for existing GitHub issues
   - [* ] I updated all Cordova tooling to most recent version
   - [* ] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] xmetalmw commented on issue #613: PostMessage Run time error in Ios

Posted by GitBox <gi...@apache.org>.
xmetalmw commented on issue #613: PostMessage Run time error in Ios
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/613#issuecomment-579461814
 
 
   I am hitting this issue in a Cordova project, built with PhoneGap Build. On iOS you do get an error saying that webkit is not defined when using the additional cordova-plugin-wkwebview-engine plugin for display of web content within my iOS app.
   
   This same routine works in Android successfully using the standard InAppBrowser.
   
   Both platforms are using the 3.2.0 version of the InAppBrowser.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] dpa99c commented on issue #613: PostMessage Run time error in Ios

Posted by GitBox <gi...@apache.org>.
dpa99c commented on issue #613: PostMessage Run time error in Ios
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/613#issuecomment-576240090
 
 
   @JoshuvaGeorge03 you appear to be using this plugin in a Capacitor project not a Cordova project which I would suspect is the cause of your project since the plugin code is designed to work in the Cordova runtime environment.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] JoshuvaGeorge03 commented on issue #613: PostMessage Run time error in Ios

Posted by GitBox <gi...@apache.org>.
JoshuvaGeorge03 commented on issue #613: PostMessage Run time error in Ios
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/613#issuecomment-577994481
 
 
   @dpa99c 
   
   > @JoshuvaGeorge03 you appear to be using this plugin in a Capacitor project not a Cordova project which I would suspect is the cause of your project since the plugin code is designed to work in the Cordova runtime environment.
   
   if that is the reason, then it should not work in my android  project which is also capacitor project. and In ios also, cordova-plugin-inappbrowser v3.1.0 works. 
   
   Only cordova-plugin-inappbrowser v3.2.0 throws error in runtime when doing postmessage
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] skle commented on issue #613: PostMessage Run time error in Ios

Posted by GitBox <gi...@apache.org>.
skle commented on issue #613: PostMessage Run time error in Ios
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/613#issuecomment-581877061
 
 
   Having the same issue on iOS. After reverting to 3.1.0, this works fine.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org