Build an iOS and Android app with Cloud Build without a key?

  • 1
  • Question
  • Updated 4 years ago
Hi,

Is there a way to build an iOS and Android app with Cloud Build without providing any key and provisionning profile?

I'm just trying to do some tests for now, so I don't have a developer accounts with Apple nor Android...

Thanks!
Photo of duh!

duh!

  • 4 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Android: yes. iOS: no.
Photo of duh!

duh!

  • 4 Posts
  • 0 Reply Likes
There is an apk file generated for the android version without providing a key. But when I open the apk, I only see the default Phonegap app, not my project... Why?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
You must have done something wrong, then.
What do you mean by "opening the apk"? Would that be " install and launch on test device" or something else?
Photo of duh!

duh!

  • 4 Posts
  • 0 Reply Likes
Thanks for the help! Here is what I am doing:

- I tested my game on the phonegap mobile app -> it works fine.
- So I zipped the app and uploaded it on Cloud Build.
- I downloaded the apk for android (the iOS build fails because no keys)
- I opened the apk o my mac with https://developer.chrome.com/apps/get...
- And I see the default PhoneGap app "Phonegap: your device is ready"

How can I debug this... ?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
You made a couple of errors:

1. You believe that whatever the developer app generates is good enough for Phonegap Build. You are apparently not aware that these applications/services are not compatible.

2. You believe that looking into the apk file and seeing a config means that this is the config that is being used for execution of your app.

This would probably be a great time to read the PGB Docs (see Docs link in menu bar of this forum), then start from scratch. Also, you may want to browse a couple of days worth of threads in this forum, because your situation is discussed here on an almost daily basis.
Photo of duh!

duh!

  • 4 Posts
  • 0 Reply Likes
Thanks, I managed to make it work (my directory was wrong).

One last question: if the .apk is working, does it mean that the iOS app should also work fine once I add the keys?

It's for a small game built in HTML5.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
No. You should test on multiple versions of both OS and with multiple screen dimensions.
Android and iOS have
- different icons and splashes
- different whitelisting
- different ways of "app exit"
- sometimes quite different implementation of plugins
- specific preferences and config-file elements for each

Also, there are several known bugs with each of the PGB versions for one or both OS.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@duh!
It was good that Petra informed you that Phongap Desktop App and does not work with Phonegap Build __without modifications__.

This FAQ should also help. Read the bold sentences first.
Top Mistakes by Developers new to Cordova/Phonegap

Best of Luck
Jesse