Question

Mobile client and offline-enable cases seem to cause a problem

When I start an application on the mobile client (Pega 8.1, iOS, mobile 7.40.1.0) it starts well if the application does not contain cases that are enabled for offline use. But if we enable one case type for offline use, we cannot login to the application: after submitting user credentials we are thrown back to the opening screen of the mobile app with the url.

Correct Answer
November 5, 2018 - 5:04am

Let me paste the instructions again. This time I'm reattaching the images right from my hard drive:

iOS: Viewing logs with Xcode

  • Open Xcode and select Window->”Devices” from the menu (CMD+Shift+2):

  • Select connected device:

  • Install application on the iOS device. You may also download ipa file and "drag and drop" it to "Installed Apps" area of "Devices" window (you can also choose "+" and browse the ipa file):

  • You may need to click "arrow" button to show the device console:

  • Start installed application on the device and see logs:

  • You can delete or save the console using buttons in bottom-right corner:

Comments

Keep up to date on this post and subscribe to comments

October 31, 2018 - 12:54pm

Please make sure your application conforms to https://community.pega.com/knowledgebase/articles/offline-mobility-guidelines-0. Please share mobile application logs so that we are able to help further.

November 1, 2018 - 7:55am
Response to RadoslawNowak

I have checked and it seems that I conform to the guidelines mentioned.

How can I get the mobile application logs for iOS? I've seen a post for Android, but not for iOS.

November 2, 2018 - 5:30am

Please refer to Apple support pages to learn how to read iOS application logs. For your convenience, I'm attaching a copy of our internal instructions:

iOS: Viewing logs with Xcode

 

  • Open Xcode and select Window->”Devices” from the menu (CMD+Shift+2):

Screen Shot 2015-02-25 at 16.04.23.png

 

  • Select connected device:

Screen Shot 2015-02-25 at 16.06.32.png

 

  • Install application on the iOS device. You may also download ipa file and "drag and drop" it to "Installed Apps" area of "Devices" window (you can also choose "+" and browse the ipa file):

Screen Shot 2015-02-25 at 16.10.06.png

 

  • You may need to click "arrow" button to show the device console:

               Screen Shot 2015-02-25 at 16.13.55.png

  • Start installed application on the device and see logs:

Screen Shot 2015-02-25 at 16.13.27.png

  • You can delete or save the console using buttons in bottom-right corner:

                    Screen Shot 2015-02-25 at 16.21.07.png

 

November 4, 2018 - 6:38am

Thanks. You refer to picture in PegaMesh that are "restricted" so I cannot access them.

I see that notifications are not supported in the Pega Mobile Express app. Could it be the case that the same holds for working offline? Because that may provide an explanation....

Pega
November 4, 2018 - 7:31am
Response to RobertJanStreng

No. Push notifications registration doesn't block offline portal launch. Most likely causes are data sync failure due to unsupported rules or custom JavaScript in the portal harness.

- James

November 5, 2018 - 5:04am
Response to RobertJanStreng

Let me paste the instructions again. This time I'm reattaching the images right from my hard drive:

iOS: Viewing logs with Xcode

  • Open Xcode and select Window->”Devices” from the menu (CMD+Shift+2):

  • Select connected device:

  • Install application on the iOS device. You may also download ipa file and "drag and drop" it to "Installed Apps" area of "Devices" window (you can also choose "+" and browse the ipa file):

  • You may need to click "arrow" button to show the device console:

  • Start installed application on the device and see logs:

  • You can delete or save the console using buttons in bottom-right corner: