- PEM file containing private key from AWS server.
- A domain to server
- GIT Bash (In Window, can't use command line tool or powershell).
Steps:
A mostly reasonable approach to React and JSX
Install `$ meteor add meteorhacks:picker` first | |
``` | |
import {Meteor} from 'meteor/meteor'; | |
import {Accounts} from 'meteor/accounts-base'; | |
import {FilesCollection} from 'meteor/ostrio:files'; | |
export const MyFiles = new FilesCollection({ | |
collectionName: 'MyFiles', | |
allowClientCode: true, |
Disclaimer: The instructions are the collective efforts from a few places online. | |
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did. | |
First off, bundle. | |
================== | |
1. cd to the project directory | |
2. Start the react-native packager if not started | |
3. Download the bundle to the asset folder: | |
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle" |
GoogleService-Info.plist
step, after download the file, open xCode
, in Project Navigator
right click Supporting
folder and select Add files to ...
then select the downloaded file.App Id
, APNs
(.p8) and Provisioning Profile
for iOS
: https://firebase.google.com/docs/cloud-messaging/ios/certs
2a. Add APN
file (.p8) to Firebase AppPodfile
, add following below pod 'Firebase/Core'
: pod 'Firebase/Messaging'
then $ pod install
againreact-native-fcm
module then rnpm link react-native-fcm
# main.js