Jump to content

UniMobileX - Android and IOS. (Source code available)


Hayri ASLAN

Recommended Posts

UniMobileX is a middle man between UniGUI and Android - IOS operating systems. 

Supported Features: (Last Updated : 2 March 2022)

  • DeviceID
  • Keep Screen Awake
  • Access Camera
  • Read Barcode and QRCode
  • Request Biometric Authentication (Fingerprint, FaceID, TouchID)
  • Handle Back Button (Android)

ANDROID:

I'm using B4A. It is free. 

Please download it from below link and make sure you can run Hello World app.

https://www.b4x.com/b4a.html

IOS:

I'm using B4I. Unfortunately it is not free. B4i is a development tool for native iOS applications.

If you want to develop IOS apps, please buy it from below link and make sure you can run Hello World app.

https://www.b4x.com/b4i.html

DELPHI:

UniMobileX component is a middle man component which is communicating with Android and IOS apps.

Please Install it and make sure you can run Demo app.

 

Parameters:

Please change below parameters in B4XMainPage. 

    Dim kvsEncyptPassword As String = "ChangeMe"
    Dim WebsiteLink As String = "http://192.168.0.59:8077/m"

ios1.thumb.png.185de58e11e4bc70a8b0f22aace779b9.pngandroid1.png.a270a624148e1f653a00e261f7040e7e.png

 

Please download from below link. 

UniMobileX.zip

  • Like 5
  • Thanks 1
  • Upvote 1
Link to comment
Share on other sites

Hi Hayri; Thanks for taking time to improve Unigui.

NetEncoding or System.NetEncoding not found in XE5, but NetEncoding only used in Base64toImage and if comment Compile ok and install UniMobileX.

When I run demo (changed WebsiteLink to correct url) and test with my android, "Waiting Connection" is diplayed in the app and don´t work.

Maybe is necessary copy some files to "files" folder of unigui app?

 

Another question in UniAndroid, my app is showing "UniAndroid not defined" i lost something? I can't find the forum thread about UniAndroid.

Link to comment
Share on other sites

Thanks a lot !

Really is the best contribution in the whole forum for uniGUI enhancement. Now I need to focus in a universal printing solution.

I'll make some examples and post at the forum for the users. I abandoned the tests because I thought you had gave up of it.
And there are Eletron and Nativefier. I was messing around with them.

Link to comment
Share on other sites

Merhaba Hayri bey,

-https://www.b4x.com/b4a.html yuklemesini yaptim. B4A-Bridge uygulamasini da yukledim ve kendi ornegini calistirdim sorunsuz calisti.

-Sizin bileseni yukledim. uygulamayi derledim. sorunsuz derlendi.

Simdi sizin demo yu apk olarak nasil derleyebilirim? İşlem sıradaki işlem adımı nedir acaba?

Teşekkür ederim

Link to comment
Share on other sites

5 minutes ago, mehmet07 said:

Merhaba Hayri bey,

-https://www.b4x.com/b4a.html yuklemesini yaptim. B4A-Bridge uygulamasini da yukledim ve kendi ornegini calistirdim sorunsuz calisti.

-Sizin bileseni yukledim. uygulamayi derledim. sorunsuz derlendi.

Simdi sizin demo yu apk olarak nasil derleyebilirim? İşlem sıradaki işlem adımı nedir acaba?

Teşekkür ederim

Merhaba

B4A klasoru icindeki uygulamayi acin, eger kutuphane hatasi verirse Libraries kismindaki dosyalari internal library bolumune kopyalayin. Gerekli parametreleri degistirip uygulamayi derlediginizde apk olucak.

 

1- Make sure hello world app works.

2- Add missing libraries that I provided to Internal libraries folder.

3- Build B4A app and you will get an apk. Before building make sure you changed to parameters.

Link to comment
Share on other sites

Hello,
I tried your demo and it works fine. When I add it to my own application, I get the message postAppMessage is not defined.
My action steps:
-I added the UniMobileX1 component to the form.
-I added the postAppMessage function to the script property of the form.
-One button UniMobileX1.ReadBarcode(true); i wrote your code

Link to comment
Share on other sites

6 hours ago, mehmet07 said:

Hello,
I tried your demo and it works fine. When I add it to my own application, I get the message postAppMessage is not defined.
My action steps:
-I added the UniMobileX1 component to the form.
-I added the postAppMessage function to the script property of the form.
-One button UniMobileX1.ReadBarcode(true); i wrote your code

You should add postappmessage to mainform

Link to comment
Share on other sites

55 minutes ago, mehmet07 said:

I added the postAppMessage function to the script property of the mainform.

gives the same error

After getting connected with you, the solution was putting postappmessage script into Login form as you have a login form.

Link to comment
Share on other sites

  • 3 weeks later...

Thank you so much your work it's really nice.

I'd like to ask that how can I use camera to record a new video. In my app I'm using the UniGUI mobile upload component where I already set the accept ('video') property. The mobile app every time wants to create photo.

When I'm testing this function in Chrome browser, it works properly.

Thank you for any help!

Link to comment
Share on other sites

On 3/28/2022 at 3:40 AM, Franco Grech said:

Thank you so much your work it's really nice.

I'd like to ask that how can I use camera to record a new video. In my app I'm using the UniGUI mobile upload component where I already set the accept ('video') property. The mobile app every time wants to create photo.

When I'm testing this function in Chrome browser, it works properly.

Thank you for any help!

Hello

Can you make a simple test case so I can work on it

Link to comment
Share on other sites

×
×
  • Create New...