Page 1 of 1

Android App 無限 Loading 的問題

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

Re: Android App 無限 Loading 的問題

Posted: Fri Nov 10, 2017 8:06 pm
by amosbatto
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 ... 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.

Re: Android App 無限 Loading 的問題

Posted: Sat Nov 11, 2017 10:22 am
by Leon0824
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 ... 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

Re: Android App 無限 Loading 的問題

Posted: Tue Nov 14, 2017 1:09 am
by amosbatto
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 11701 times
It looks like this REST endpoint fails:
http://35.201.233.188/api/1.0/workflow/ ... 0061124955
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?

Re: Android App 無限 Loading 的問題

Posted: Tue Nov 14, 2017 2:47 am
by Leon0824
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.

Re: Android App 無限 Loading 的問題

Posted: Tue Nov 14, 2017 11:54 pm
by amosbatto
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.

Re: Android App 無限 Loading 的問題

Posted: Fri Nov 17, 2017 6:49 am
by Leon0824
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.