how to get your customized mendix app into … · 2a. phonegap build 2b. openssl 2c apple developer...

41
HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO TESTFLIGHT FROM APPLE (PART I) Frederic Petrignani

Upload: others

Post on 12-Aug-2020

16 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO TESTFLIGHT FROM APPLE (PART I)

Frederic Petrignani

Page 2: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

WHAT IS TESTFLIGHT?

You know when you want a user to test your

Android app, you can just send them the

.apk file and they can download it to their

mobile device and install it themselves?

It doesn’t work like that with Apple.

TestFlight =

• Beta build in App Store

• Send email invites to test users

• Link in email allows installation

• Apple: “Beta testing made simple”

2

Page 3: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

Getting it INTO TestFlight is NOT made simple

Mendix documentation refers to

GitHub documentation and how-to’s

which refer to other documentation

and other how-to’s which refer to

OpenSSL, Node.js, PhoneGap Build

and Apple documentation.

There is not one single how-to

explaining the end-to-end process.

3

Page 4: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

4

THE BIG PICTURE: 3 STEPS

1. Use the Mendix portal, Visual Studio Code and Node.js

2. Use PhoneGap Build, OpenSSL & Apple Developer Center

3. Use Application Loader, App Store Connect and TestFlight

to get your customized phonegap package

to get your .ipa file

to get your app installed with test users

Page 5: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

5

THE BIG PICTURE: “3” STEPS

1A. The Mendix portal

1B. Visual Studio Code

1C Node.js

2A. PhoneGap Build

2B. OpenSSL

2C Apple Developer Center

2D OpenSSL

2E Apple Developer Center

2F PhoneGap Build

3A. Application Loader (MacBook!)

3B. App Store Connect

3C. TestFlight

Use:

customizable phonegap package

edited code

customized phonegap package

“unsigned” .ipa file

private key and Certificate Signing Request (.csr)

certificate (.cer)

P12 file

distribution profile

signed .ipa file

.ipa file into the Apple App Store

app into TestFlight and

app installed with test users

To get your:

Page 6: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

6

STEP 1A

Page 7: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

7

STEP 1A

Page 8: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

8

STEP 1A Change the

selection to

Do it yourself

Page 9: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

9

STEP 1A Change the

selection to

Do it yourself

Page 10: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

10

STEP 1A

Create a folder

for the project,

put this file there

and unzip it

Change the

selection to

Do it yourself

Page 11: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

11

STEP 1B

Page 12: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

12

STEP 1B Look for entry.js in src/www/scripts

and open it with Visual Studio Code

Page 13: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

13

STEP 1B Look for entry.js in src/www/scripts

and open it with Visual Studio Code

This is where you put

your customized code

Page 14: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

14

STEP 1B

Don’t forget to manually save the

changes. Closing Visual Studio Code

without saving won’t do.

Look for entry.js in src/www/scripts

and open it with Visual Studio Code

This is where you put

your customized code

Page 15: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

15

STEP 1B Look for entry.js in src/www/scripts

and open it with Visual Studio Code

Good to know:

The default timeout for online apps is 5000 ms, so setting it to 15000 ms would increase the timeout.

The default time for offline apps is 30000 ms. so setting it to 15000 would decrease the timeout.

Page 16: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

16

STEP 1C

Page 17: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

17

STEP 1C

Open a Node.js command prompt and navigate to the root directory of the unzipped phonegap package

Page 18: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

18

STEP 1C

Open a Node.js command prompt and navigate to the root directory of the unzipped phonegap package

Run this

command

Page 19: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

19

STEP 1C

Open a Node.js command prompt and navigate to the root directory of the unzipped phonegap package

Then this

command

Page 20: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

20

STEP 1C

Your customized phonegap package is in the dist folder.

Open a Node.js command prompt and navigate to the root directory of the unzipped phonegap package

Page 21: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

21

STEP 1C

Your customized phonegap package is in the dist folder.

Open a Node.js command prompt and navigate to the root directory of the unzipped phonegap package

Run these

two commands

Page 22: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

22

STEP 2A

Page 23: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

23

STEP 2A

Page 24: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

24

STEP 2A

Page 25: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

25

STEP 2B

Page 26: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

26

STEP 2B

In the installation wizard, choose to

Copy OpenSSL DLLs to:

- The OpenSSL binaries (/bin) directory

Page 27: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

27

STEP 2B

In the installation wizard, choose to

Copy OpenSSL DLLs to:

- The OpenSSL binaries (/bin) directory

Now you have a

Certificate

Signing

Request

(.csr file)

Page 28: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

28

STEP 2C

Page 29: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

29

STEP 2C

Page 30: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

30

STEP 2C

Page 31: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

31

STEP 2C

Now you can download

a .cer file

Page 32: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

32

STEP 2D

testflight.cer

testflight.pem

Page 33: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

33

STEP 2D

testflight.cer

testflight.pem

testflight.pemtestflight.key

testflight.p12

Page 34: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

34

STEP 2E

Page 35: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

35

STEP 2E

Page 36: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

36

STEP 2E

Page 37: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

37

STEP 2F

Page 38: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

38

STEP 2F

Page 39: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

39

STEP 2F

Rebuild

Page 40: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

40

THE BIG PICTURE: “3” STEPS

1A. The Mendix portal

1B. Visual Studio Code

1C Node.js

2A. PhoneGap Build

2B. OpenSSL

2C Apple Developer Center

2D OpenSSL

2E Apple Developer Center

2F PhoneGap Build

3A. Application Loader (MacBook!)

3B. App Store Connect

3C. TestFlight

Use:

customizable phonegap package

edited code

customized phonegap package

“unsigned” .ipa file

private key and Certificate Signing Request (.csr)

certificate (.cer)

P12 file

distribution profile

signed .ipa file

.ipa file into the Apple App Store

app into TestFlight and

app installed with test users

To get your:

Page 41: HOW TO GET YOUR CUSTOMIZED MENDIX APP INTO … · 2A. PhoneGap Build 2B. OpenSSL 2C Apple Developer Center 2D OpenSSL 2E Apple Developer Center 2F PhoneGap Build 3A. Application Loader

Thank you

41