My app successfully logs users into Google using react-native-google-signin. I want to call other google APIs like the Google Calendar API using a token.
Which of the 3 options (or something else entirely) should I use?
Download the javascript file from google-api-javascript-client and put it in my project. The tutorials for that are for html pages rather than react native. They suggest using script tags in the HTML.
Use the google-api-nodejs-client which adds 4mB
Make requests manually using axios/ fetch (this is what I did in the end)
Related
I have developed a small App in VueJs and now I want to integrate this app into another website. I know there are ways using iframe/embed, but I need something similar to Google analytics code, meaning it just gives us few lines of JS code and it does all the trick.
Is it possible to create a JS code, add it to another website, and that website start displaying my VueJs application serving from another host?
I’m a newbie to the programming world,
I’m building an app on react native for iOS and Android
The objective of the app is to give subscribers access to different pdf/word documents.
My question is to understand what structure is to be implemented for an efficient app. The question is ?
Should I develop an api which gives me The ability to upload documents and subscribers to the app can ‘Download’ PDFs. Should I use Google drive api or develop my own?
Or is there any other more efficient way to achieve the objective.
Thank you
You can use react-native-fs if your application includes the document read, download, and upload(to any URL). If you'll use Google Drive you'll be relying too much on Google services, but this package allows you to add custom operations.
Edit
You can use downloadFile for downloading a file from URL and uploadFiles for uploading.
I am currently developing a mobile app with react-native and this app contain a invitation code.
Store download link will have a invitation code parameter.
I want to get this parameter from downloaded apps via store download link.
How can i do this on react-native ?
Thanks in advance
Use Firebase Dynamic Links
Firebase Invites makes it simple for users to send content to their friends, over both SMS and email, by ensuring that referral codes, recipe entries, or other shared content gets passed along with the invitation—no cutting-and-pasting required.
Documentation https://firebase.google.com/docs/dynamic-links/
How does it work?
You create a Dynamic Link either by using the Firebase console, using a REST API, iOS or Android Builder API, or by forming a URL by adding Dynamic Link parameters to a domain specific to your app. These parameters specify the links you want to open, depending on the user's platform and whether your app is installed.
When a user opens one of your Dynamic Links, if your app isn't yet installed, the user is sent to the Play Store / App Store to install your app (unless you specify otherwise), and your app will open. You can then retrieve the link that was passed to your app and handle the deep link as appropriate for your app.
For react-native use react-native-firebase https://www.npmjs.com/package/react-native-firebase
and
https://rnfirebase.io/docs/v5.x.x/links/reference/links
I would like to get information from a specific website (https) from within a react native app.
For that, I need to:
Open and Login to the web page (https)
Make a simple navigation (known tag in html)
Parse the resulting page for data.
Present the data in a React native component (not webUI).
Any idea what would be the best way to do it?
10x,
EyalS
Here is what I would do:
Use the following tutorial to use Browserify to wrap Zombie.js within a react-native app.
Navigate with Zombie.js to the data that you are seeking.
Display the data.
Happy coding.
Basically, what I would like to do is to create a link from a web application that will open a Dropbox file from appropriate Dropbox native app. Google Drive for example allows you to re-format the unique URL for a file such as https://docs.google.com/blablabla which you can retrieve from their API, into googledrive://docs.google.com/blablabla and lets you open the file in Google Drive native app.
I have tried dropbox:// URLs with no success, and have not found any existing conversation on this despite running cross multiple conversations on the same subject for Google Drive or Evernote. Please let me know if it is possible to somehow generate this via API or based on the folder structure etc.
Thanks!