krisrak / html5-cordova-plugin-sharing

Sample HTML5 app with Cordova sharing plugin that show how text or files can be shared with other apps like Facebook, Twitter, SMS or Email
0 stars 2 forks source link

Intel XDK In-App Window not closing #1

Open Ngugs opened 9 years ago

Ngugs commented 9 years ago

Hi Kris, I have a small challenge. When the user grants access permissions to my app, the accept/deny permission FB window does not close, therefore the plug-in code cannot process the response. I notice that my redirect_url is a dummy url and not a real website page. The browser displays a 404 not found page error. Please help.

Ngugs commented 9 years ago

Hi Kris, I have found a solution. Change this line: $(loginWindow).on('loadstart', function(e) { var url = e.originalEvent.url; to: loginWindow.addEventListener('loadstart', function(event) { var url = event.url; Thanks a lot for this plug-in.