What type of Google Oauth 2.0 Client ID is selected for Cordova Hybrid Mobile Applications?

I am developing cordova hybrid mobile apps for android and iOS smartphones.

Usecase: The application authenticates the user and then accesses the Google Calendar API and finally displays user events in the application.

Note. I will use the 3-night OAuth and Google data APIs without client libraries.

Question

The Cordova-enabled web interface provides the application with its entire user interface, so in this case, should there be an application type ?

  • Since everything goes in a web browser, so should I choose "Web Application"?

OR

  • Do I need to create a separate type of application for Android and iOS separately?

  • Or can I use the iOS app type for Android and iOS?

Please propose what should be the approach to choosing the type of application in this case.

Thanks!

enter image description here

+5
source share
1 answer

It depends on how your application is configured. If you plan to handle all OAUTH processing on the backend server, then you can use the type of web application, and you can disable all OAUTH operation on the backend server.

If you do not have a server server and you will process all OAUTH on the user device, you should create an iOS and Android client identifier. For instance:

https://github.com/EddyVerbruggen/cordova-plugin-googleplus

This plugin documentation shows how to create an iOS and Android client ID to enable Google Sign In in the Cordova app.

+1
source

Source: https://habr.com/ru/post/1265770/


All Articles