Hi, i need to connect my app to google drive, shoq all the files, and maybe upload, download,delete, edit…so I try this
errors:
Failed to load resource: the server responded with a status of 404 (Not Found) https://apis.google.com//scs/apps-static//js/k=oz.gapi.en.RArmLpCIYB0.O/m…1/ed=1/am=QQ/rs=AGLTcCOEiG2RgKkKDvOG7y5PZ-fMFMsJXQ/t=zcms/cb=gapi.loaded_0
Uncaught TypeError: Cannot call method ‘load’ of undefined
Could not find InAppBrowser plugin
and this
http://blog.ionic.io/oauth-ionic-ngcordova/
no errors on console…but after authentication return to the main page
any suggestion??Please
Thank you
Hi @fabiobalsamo,
Can you make sure you have installed the in-app-browser plugin and set up the right application on google developer console?
hi…yes…all done…step by step…maybe there is some other change to do?
i run the app on android os
already add platform
and changed your client_id with mine
Errors still the same …any idea please?
Failed to load resource: the server responded with a status of 404 (Not Found) https://apis.google.com//scs/apps-static//js/k=oz.gapi.en.RArmLpCIYB0.O/m…1/ed=1/am=QQ/rs=AGLTcCOEiG2RgKkKDvOG7y5PZ-fMFMsJXQ/t=zcms/cb=gapi.loaded_0
Uncaught TypeError: Cannot call method ‘load’ of undefined
drive.js:37
No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin. console-via-logger.js:174
Could not find InAppBrowser plugin
hey,
In cordova 5.0 specially on Android, you need to install cordova whitelist plugin to access any third party resources.
Check here:
Try to install the cordova.whitelist plugin.
you might need to set the meta tag in your index.html to define your access policy. Check the last section of the documentation of https://github.com/apache/cordova-plugin-whitelist
Thank you so much mr. i ll try now…i add to the config.xml all this stuff
!-- Allow images, xhrs, etc. to google.com -->
access origin=“http://google.com”/>
access origin=“https://google.com”/>
!-- Access to the subdomain maps.google.com -->
access origin=“http://maps.google.com”/>
!-- Access to all the subdomains on google.com -->
access origin=“http://.google.com"/>
!-- Enable requests to content: URLs -->
access origin="content:///”/>
allow-navigation href=""/>
allow-navigation href="http:///"/>
allow-navigation href="https:///"/>
allow-navigation href="data:"/>
anyway this
access origin="*"/>
there is from the start
can you guys teel me how to edit and Sign Documents in Ionic hybrid app
nothing…the error now is this
Failed to load resource: the server responded with a status of 404 (Not Found) https://apis.google.com//scs/apps-static//js/k=oz.gapi.en.RArmLpCIYB0.O/m…1/ed=1/am=QQ/rs=AGLTcCOEiG2RgKkKDvOG7y5PZ-fMFMsJXQ/t=zcms/cb=gapi.loaded_0
No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin. console-via-logger.js:174
Uncaught TypeError: Cannot call method ‘setApiKey’ of undefined
drive.js:34
No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin. console-via-logger.js:174
@rahul4ckp Can you explain a bit more, what do you mean by edit and sign document ? are you trying to edit any google document?
@mrazadar I need to edit ( Html or Word or PDF ) document in my app. So that we can add some text or strikeout some text of the document and save it
Sorry @rahul4ckp,
This is something I also need to do some research work.
@mrazadar If you have some time, then help me
mr @mrazadar sorry, but doesn’t work…i can’t access to google drive
@mrazadar and why there is this error?
Uncaught TypeError: Cannot call method ‘load’ of undefined
drive.js:37
So the solution is implement this line of code:
You can also download the script and make it available for offline.
The problems was that you cannot get the GAPI object without that file.
I hope I can help someone.
Hi, thank you, but, what line???
Hi! I am really sorry but I thought I put it. So it is just loading the client.js script of google.
<script src="https://apis.google.com/js/client.js"></script>
Put it above of your <script src="myDir/js/apis.google.it.js"></script>
.
1 Like