Android App 無限 Loading 的問題

中文论坛 (Forum for Chinese Speakers)

Moderators: amosbatto, yuhesky

Leon0824
Posts: 4
Joined: Thu Nov 09, 2017 5:41 am
Country: Taiwan

Android App 無限 Loading 的問題

Unread postby Leon0824 » Fri Nov 10, 2017 5:56 am

大家好,最近自己架了 ProcessMaker 試用
跟著網站的教學做了 Purchae Request 的流程和表單
但是用 Android App 新增或讀取 Purchase Request 流程時,表單讀取都會無限 Loading
試過了幾個版的 Android 都一樣
但是在 Web 和 iOS App 都可以正常讀入表單的
可否請大家指點一下問題大概是出在哪
謝謝~

amosbatto
Posts: 5466
Joined: Mon Jun 22, 2009 10:28 am
Country: Bolivia
Location: La Paz

Re: Android App 無限 Loading 的問題

Unread postby amosbatto » Fri Nov 10, 2017 8:06 pm

It is probably a JavaScript problem, if you see a spinning circle. You can check the JavaScript in the Chrome debugger:
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/

If you can't find the problem, then export your process and post your .pmx file here. I will look at it on Monday.
Amos B. Batto ♦ ProcessMaker Technical Documentation Writer & Forum Manager ♦ Cofounder of ILLA (http://www.illa-a.org)

Leon0824
Posts: 4
Joined: Thu Nov 09, 2017 5:41 am
Country: Taiwan

Re: Android App 無限 Loading 的問題

Unread postby Leon0824 » Sat Nov 11, 2017 10:22 am

amosbatto wrote:It is probably a JavaScript problem, if you see a spinning circle. You can check the JavaScript in the Chrome debugger:
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/

If you can't find the problem, then export your process and post your .pmx file here. I will look at it on Monday.


I followed the instruction to enable the Chrome remote debugger. The remote debugger works fine with any tabs in Chrome for Android and other apps use WebView. However, the remote debugger cannot work along ProcessMaker Android app.

I built a test machine in Google Cloud. You can access it with below information:
Address: http://35.201.233.188/
ID: Designer
Password: password
Attachments
Purchase_Request-3.pmx
(82.45 KiB) Downloaded 1 time

amosbatto
Posts: 5466
Joined: Mon Jun 22, 2009 10:28 am
Country: Bolivia
Location: La Paz

Re: Android App 無限 Loading 的問題

Unread postby amosbatto » Tue Nov 14, 2017 1:09 am

I see the problem when I try to run the case in Google Cloud with the PM App. Here is what I see in the Chrome Debugger:
ErrorAmazonDynaFormLoading.png
ErrorAmazonDynaFormLoading.png (93.79 KiB) Viewed 118 times


It looks like this REST endpoint fails:
http://35.201.233.188/api/1.0/workflow/light/get-next-step/9958555065a0a7687bf4b40061124955
I wonder if Google is blocking something.

I don't see this problem when I run your process in a Red Hat 7.0 machine with PM 3.2.1 Enterprise. What operating system and what versions of PHP, MySQL and Apache are you using?
Amos B. Batto ♦ ProcessMaker Technical Documentation Writer & Forum Manager ♦ Cofounder of ILLA (http://www.illa-a.org)

Leon0824
Posts: 4
Joined: Thu Nov 09, 2017 5:41 am
Country: Taiwan

Re: Android App 無限 Loading 的問題

Unread postby Leon0824 » Tue Nov 14, 2017 2:47 am

I use Bitnami to build the test PM site. Its infrastructure is:
- ProcessMaker Community Edition 3.2.1
- Apache 2.4.27
- MySQL 5.5.57
- PHP 5.6.31
- phpMyAdmin 4.7.2

Here is its phpinfo page. You can check the phpinfo with the Designer account also.

amosbatto
Posts: 5466
Joined: Mon Jun 22, 2009 10:28 am
Country: Bolivia
Location: La Paz

Re: Android App 無限 Loading 的問題

Unread postby amosbatto » Tue Nov 14, 2017 11:54 pm

I just tried your process in ProcessMaker App 1.2.0.1 in Android 6.0.1 with a Bitnami install of ProcessMaker 3.1.3 Community Edition and it works.

However, I do remember that I saw an error message about the file permissions in a log file the first time I tried to start a case with the ProcessMaker App 1.2.0.1.

I don't recall which directory you have to change, but it will be something like:
chmod -R 775 /opt/processmaker-3.1.3.b1-0/{some-directory}
Then, the error message went away and I could start new cases in the ProcessMaker App. However, that doesn't seem to be your problem if you are seeing the "Loading" message.

I recommend that you do a manual installation of ProcessMaker.
Amos B. Batto ♦ ProcessMaker Technical Documentation Writer & Forum Manager ♦ Cofounder of ILLA (http://www.illa-a.org)

Leon0824
Posts: 4
Joined: Thu Nov 09, 2017 5:41 am
Country: Taiwan

Re: Android App 無限 Loading 的問題

Unread postby Leon0824 » Fri Nov 17, 2017 6:49 am

Thanks for your help.

I also encountered some permission issue on the 1st machine in Google Cloud. Loading issues may caused by permission setting also.

Whatever I built another machine and Android app loads correctly.


Return to “中文 (Chinese)”

Who is online

Users browsing this forum: Google [Bot] and 1 guest