cancel
Showing results for 
Search instead for 
Did you mean: 

APK Generation on SAP Mobile Services in SAP Full Stack Web IDE?

Jayakrishnan
Active Participant
0 Kudos

Hi All,

This question is regarding the apk generation from SAP Web IDE using Mobile Services.

Earlier we developed mobile solution and generated the android apk using Local HAT setup (Nearly a year back). It was working as expected.

But the Customer would like to place the apk on the Google Play store. But when they tried to upload, it throws the version error. Please see the error message below.

My Question:

1. As far as i know the Local HAT setup is deprecated. So i have to use SAP Mobile services right?

2. How to do the changes regarding the API level issue?

Could someone help me to solve this issue.

Thank you,

Rergards,

JK.

Accepted Solutions (1)

Accepted Solutions (1)

LudoNoens
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi JK,

Let me answer a few of the other questions you've posted.

You can disable debug mode in the Build wizard.

I do not recommend using HAT local add-on. Also, a project suited for cloud build service will not simply work using HAT local add-on.

For offline apps, please check out my blog.

For debugging the error, I recommend using the network trace function in SAP Mobile Services cockpit (see Analytics). I suspect there is an issue with the data source mapping (destination) and the consumption of the data source within the UI5 based app.

Regards,
Ludo

Jayakrishnan
Active Participant
0 Kudos

Thank you lnoens for all the clarifications which i need .

Jayakrishnan
Active Participant
0 Kudos

Hi lnoens ,

I enabled the traces and logs. when i run the app as a webapp it is working. But when i try to open the apk in my mobile, i shows blank screen.

Error: Failed to read configuration for tenant: [3f660baf-bebb-438d-85f2-8d423f9befee], null will be returned. Response status code: [404].

As i mentioned earlier, I converting my existing offline app (implemented via local HAT )into cloud build method. i just added the feature, thats it.

One more question. Do we get any case to create mobile destination manually on the mobile service cockpit?.

Thanks,

Regards,

Jayakrishnan.C

Jayakrishnan
Active Participant
0 Kudos

Hi lnoens ,

I am facing some issue regarding Authnetication via Trust to access the mobile app in my mobile. I created new thread, could you please help on that issue.

https://answers.sap.com/questions/12856842/issue-while-accessing-the-cloud-build-generated-ap.html

Thank you,

Regards,

JK.

Answers (4)

Answers (4)

LudoNoens
Product and Topic Expert
Product and Topic Expert
0 Kudos

Yes, for offline you can use the same generated destination.

Cheers,
Ludo

LudoNoens
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi JK,

That is correct. We've automated that part, so you don't have to switch context (switch from SAP Web IDE to SAP Mobile Services cockpit).

Cheers,
Ludo

Jayakrishnan
Active Participant
0 Kudos

Thanks lnoens . For Offline also we can use the same destination(Generaed one) right.

LudoNoens
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi JK,

We are in the process of updating the cloud build service to use Kapsel SDK SP02 PL06. This includes the necessary changes for Android 9 and targetSdkVersion 28.

In your project, please change the config.xml file and change the value in this line to 28:

<preference name="android-targetSdkVersion" value="26"/>

Thanks,
Ludo

Jayakrishnan
Active Participant
0 Kudos

Thanks lnoens , I have some more questions(may be very silly).

1. To upload the apk in Google Play store i need to create signing profile and enable the app into release mode. In the Cloud Build Service Wizard, do i have the options?

2.I can not use Local HAT to generate the apk,which matches the Google Play store minimum requirements. am i correct?

3. In Mobile Services cockpit, i see the Mobile Application(SAP Fiori type) and destination is created automatically by Cloud Build right?. Earlier i need to create from Native/Hybrid option in the Service cockpit?

4. How about the Offline Capability? In my old app(generated using local HAT) having the Offline feature. In Cloud Build shoul i need to enable anything specifically?

Thank you,

Regards,

JK.

Jayakrishnan
Active Participant
0 Kudos

Hi lnoens , I Just explained the steps i did to generate the apk via Cloud Build Service. ,

I enabled the HAT in my Web IDE via Mobile Services. then i converted my app into hybrid enabled app, then i did the build packaged app and build companion steps. I got the apk , by scanning the QR code, installed in my device,

Once i did i able to see the new folder mobile and three files. inside the app Config file i see the Application ID and version etc. In app routes i see mu SAP Cloud Connector Destination name.

Mobile Services Cockpit:

I see a new application is generated with application id (same as in app Config file). this application creation i did manually in my local HAT Setup approach (correct me if i am wrong). then i added the existing mobile destination connection (which i used in local HAT setup). The ping check also successful. . But i see the below error in my mobile.

Thank you,

Regards,

JK.

Jayakrishnan
Active Participant
0 Kudos

Hi lnoens , Most of the questions I have asked here, I got the answer by referring some of your blogs and other references in SCN and SAP Help. I just shared the information below, what I understood.

1. It is not necessary to create application and destinations in mobile services cockpit. As part of the Cloud Build Process it will be generated and assigned with application. Correct me if I am wrong.

Thank you,

Regards,

JK.

LudoNoens
Product and Topic Expert
Product and Topic Expert
0 Kudos

1. Yes, local HAT add-on has reached End Of Maintenance. You are advised to use the Mobile Services cloud build feature to build the app in the cloud.

2. Please help raising a support ticket on component MOB-CLD-BLD, so my colleagues running the Cloud Build Service are aware and can track this.

Thanks,
Ludo