How to use firebase / cocos2dx-cpp-sample - c++

https://github.com/firebase/cocos2dx-cpp-sample
I can not understand this guide. Please teach this process more easily.
I tried ...
cocos new Hello -p com.Hello -l cpp -d ~/Desktop
console.firebase.google.com
Add Project > Project Name "Hello", Country Name
Add Firebase in ios
iOS bundle ID "org.cocos2dx.hellocpp"
GoogleService-Info.plist DL
Add Firebase SDK using cocoa pods
Swift or OBJ-C I do not know this. Because I am using C ++. I tried putting the OBJ-C code in AppController.mm but it failed.
I want you to tell me more gently about the explanation of this image. I want to learn by moving the sample as soon as possible.
Thanks.

You want to run or use firebase / cocos2dx-cpp-sample project
Steps you tried
Why are you creating new fresh project, then you need to integrate manually by your self, leave this task to setup_firebase_sample.py
// Firebase Console task, I need GoogleService-Info.plist for my iOS App
Yes you need to register your project
Creating Project
Add iOS App to your newly created Firebase Project
"org.cocos2dx.hellocpp"iOS bundle id for Sample project
Download GoogleService-Info.plist that is needed in my iOS Project
Back to step 1. When I downloaded/cloned firebase / cocos2dx-cpp-sample project. Project having setup_firebase_sample.py that download a fresh cocos project in sample_project folder and Firebase SDK.
After that you only have to open sample_project/proj.ios_mac/HelloCpp.xcworkspace file in Xcode and add your downloaded GoogleService-Info.plist inside HelloCpp.
Leave this step
Done.
You can also check this thread may be some helpful
http://discuss.cocos2d-x.org/t/firebase-c-and-cocos2d-x-official-guide-from-google-almoust-works-out-of-the-box/35645

Related

expo dev client application doesn't open

I'm trying to use expo-dev-client to add react-native-sms-retriever library to my project because expo doesn't have a library that supports reading sms messages. In expo documentation, it's suggested that I should use expo-dev-client to add custom native code. You can see the documentation here: https://docs.expo.dev/workflow/customizing/#developing-apps-with-custom-native-code
I followed all of the steps in starting guide for expo-dev-client. https://docs.expo.dev/clients/getting-started/
But when I start my app using "expo start --dev-client" and run on android, a white screen is shown for a second and then I'm redirected to expo go application page.
in console, the following 2 lines are written:
› Opening on Android...
› Opening com.droppgroup.masterclean://expo-development-client/?url=http%3A%2F%2F127.0.0.1%3A8081 on LDN_L21
I tried this on real device and 2 other emulators but I got the same result. I reinstalled expo go application and it still doesn't work.
Any suggestions on what I can do to make this work?
The issue may be a problem with Expo config plugins, which configure native code for an Expo project, by configuring Info.plist for example. I am currently experiencing a similar issue, though after scanning the QR code, I am directed to a black screen in my Expo Dev Client which crashes and takes me back to the home page. The Dev Client worked perfected until I ran expo add react-native-bluetooth-classic, since I am trying to access iOS bluetooth APIs. I am currently working on this issue, but I just wanted to point you in the direction of config plugins since the examples Expo gives for customizing your runtime have config plugins registred in the "plugins" property of app.json.
It may be necessary to create your own plugin, though I am unsure.
Please let me know if you come up with any fixes, and so will I.

Not getting a qr code for newly create Create React Native App

I'm using Create-React-Native-App for the first time (I've used React before). I'm following instructions on a course on Coursera on how to setup and start a Create-React-Native-App application. The instructions are as follows:
At a convenient location on your computer, create a folder named ReactNative and move into that folder.
Then type the following at the prompt to create a new React Native application named confusion:
create-react-native-app confusion
This should create a new folder named confusion within your ReactNative folder and create the React Native application in that folder.
This will compile the project and then start serving the project at the address exp://<Your Computer's IP address>:19000.
Install the Expo client app on your iOS or Android phone and connect to the same wireless network as your computer.
On Android, use the Expo app to scan the QR code from your terminal to open your project. On iOS, follow on-screen instructions to get a link.
This is where I get stuck. when I use "npm start" I get "Welcome to React Native! Learn once, write anywhere" but no QR code in sight. As far as I know I'm using the latest version of Create-React-Native-App. I have the Expo client app on my Android and I'm also on the same wireless network as my computer.

Ionic.io 2, Apple Application Loader, Missing Code-Signing Certificate

I'm using Ionic.io to build an Ionic 2 project and generate an .ipa (for upload to Apple's TestFlight).
When I try to upload my development .ipa file using Apple Application Uploader I get the following error:
Invalid Provisioning Profile. The provisioning profile included in the
bundle xxx.xxx.xxxx [Payload/xxx.app] is invalid. [Missing
code-signing certificate]. A Distribution Provisioning profile should
be used when submitting apps to the App Store. For more information,
visit the iOS Developer Portal."
The .ipa file is being generated by ionic.io
Ionic.io security profiles and certificates have been created as per instructions here (have tried on both Windows and Mac):
http://docs.ionic.io/services/profiles/
I've reviewed the document many times and have created keys multiple times (in case something was missed).
I'm building development with the following command. My understanding is we don't want to use "--release" because that's only for the production profile. In fact, the ionic.io package fails to build if this parameter is specified for dev.
ionic package build ios --profile dev
Push notifications are not enabled.
I posted this to the Ionic2 forum too but there has been no resolution.
Has anyone got this to work or have any ideas?
You need a mac to sign your app with a Provisioning Profile
First Build your app
ionic build ios
Then Open your app with Xcode. you can find the the project in your xcode project
ionicProject > platforms > iOS > ionicProject.xcodeproj
You need to make sure your Xcode account is setup
Click on Xcode > Preferences... > click on the plus sign
once your account is linked and you have downloed all your Provisioning profiles you can click on your project on the left
and under General you can add your Provisioning Profile below signing
This answer adds additional detail to LeRoy's answer. Because ionic.io is currently broken, the work around is to use a Mac to generate the .ipa. Note that this successfully generates a "debug" .ipa. But the steps should be similar to generate a release .ipa.
Needed a mac in a hurry so signed up for a macincloud.com account which came pre-installed with Xcode version 8.2.1.
Setup iOS security profiles as per ionic.io documentation here: http://docs.ionic.io/services/profiles/. The documentation steps are clear. I followed all steps including adding profiles to ionic.io. I was able to create using Windows and Mac. Ultimately I decided to use the Mac generated security profiles (but I don't think this mattered).
Copied my entire Ionic 2 project to the Mac.
Ran on cmd line: ionic resources
For safety, ran on cmd line: ionic platform remove ios and then ionic platform add ios.
Ran on the cmd line: ionic build ios
This generates an xCode project.
Open Xcode application. Choose open another project and select file: /platforms/ios/[project].xcodeproj
Open Xcode. In preferences > accounts added my apple account and clicked the download button.
Select Generic iOS Device
Select Generic iOS Device
In project settings > Targets > General tab: checked Automatically manage signing and selected my profile from drop down. Sometimes I had to check/uncheck this to force it to work.
Xcode complained about a signing mismatch. In project settings > Targets > Build Settings tab: change Code Signing Identity to iOS Developer. Sometimes I had to add/remove the ios platform again to get around this error.
Xcode menu Product > Archive. Followed prompts to upload to iTunes.

Chartboost sample app not showing Ads

I am trying to integrate a tool Chartboost into our game.
We are using following tools for development.
Xcode 5.0.2.
Latest ChartBoost Library.
Deployment target being iOS 6.1.
Base SDK being iOS 7.0.
Game Engine Cocos2d-x ( C++ ).
In order to use ChartBoost I followed these steps.
Created an account at Chartboost.
Added an app
Platform: iOS
Nick Name: Added
-Test Mode: Enabled
and Its showing the App Id and App signature.
Added a Campaign.
-Its On.
-CampaignStart and End are blank, so it will be effective as soon as possible.
-Filter By Bundle verion is Min 1.0 and Max blank .(already tried by keeping both blank.)
-Selected the App I added ,as the app where this campaign will run.
-Campaign Logic: Added test device with UUID.
-Rest of the options are untouched.
For test purpose I downloaded and used the sample iOS project provided at ChartBoost site. I replaced the App Id and App signature with my App's ID and Signature.On running the app, it does not display any ads. It logs messages like :
-failure to load interstitial at location Default
-failure to load interstitial at location Pause screen
-failure to load more apps
-failure to load interstitial at location After level 1
I am not able to conclude what wrong I have done! Please help on this issue.
PS:
1. I have already received a mail from ChartBoost mentioning I have successfully integrated the SDK, and in front of added app , the SDK and Frame icons are lit(green), which essentially shows , I have integrated the SDK correctly.
2.Our game is still under development and as we are using the Cocos2d-x which is c++ Game engine ,so we will be using some wrapper to call the ChartBoost library. Once we get the idea how it works on native platform.
In Chartboost sometimes it happens that you have set in the Chartboost dashboard that your game is in "Landscape" mode for example.
While your game is actually running in portrait mode.
In such cases you will get these errors.
Make both these same. Either change in the Chartboost dashboard for your app or change in the game's project file :)

How to create app store build from xcode 4.2?

I have developed the universal app using xcode 4.2. It is the time to upload the app to iTunes connect(Submit to App Store). Last time i have submitted and created app store build from xcode 3.2.5. Now, i really confused that to create an app store build from XCode 4.2. Please help me to get an app store build from XCode 4.2. I need to submit app to App store today itself. Please help me. Thanks in advance. How to get the .app file and how to upload the .app file through Application Loader application? Please help me.
I have got the answer for my own questions. I have used Apple document to submit my application to app store. This link may very useful for you. Please keep it safe. http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/DistApps/DistApps.html
Thanks.
In Xcode4.2 you need to do following steps;
1)Set iOS Device as platform
2)Go to Product->Archive
3)xcode organiser get open, select your archive and select Submit/Share as per your requirment.