B4J Question CONNECTION TO A B4J APP (INVOICING B4J BY SAMIR) USING AN APPLE PHONE

Intelemarketing

Active Member
Licensed User
Longtime User
I have been able to use Samir's Invoicing Application (Written under B4J) - It is brilliant technology.
Using a connection via Desktop Computer - No Problems. By Android Phone - No Problems. Have tried 2 different Apple Phones - Does not work. (One Apple Phone is 2 years old - the other brand new purchased 2 weeks ago). The connection is like this - eg, http://101.222.333.444:17179. (17179 is the connecting port)

In all cases I am using Google Browser to make the connection.

What happens with the Apple phone is you can connect to the B4J Server application, get the Login Screen, and try to Login. This means there is definitely an initial connection from the Apple Phone to the B4J Application.

When you key in the Login Details the application shows the App for about half a second, then returns back to the LogIn Screen.

I dont think there is anything wrong with the B4J Application as other devices connect no problems - Just something a little strange with the Apple Phone connection. Perhaps the settings in the phone need to be changed.

Has anyone else experienced this problem using an Apple Phone please ?
 

Attachments

  • B4J LOGIN.JPG
    31 KB · Views: 116
Last edited:

Intelemarketing

Active Member
Licensed User
Longtime User
Not sure if this has any bearing on the problem. When connecting to the B4J App - "B4J Invoicing", using Google, the warning NOT SECURE is displayed against the connection. The NOT SECURE message is only a standard message saying that there is no Certificate for the Website connection - normally not an issue.
 
Last edited:
Upvote 0

Intelemarketing

Active Member
Licensed User
Longtime User
Have tried single stepping the program when a user using an Apple iPhone tries to log in.
Interesting things happen ....
Often when the user clicks on Sign In, the btnlogin_Click is activated (as you would expect) but SOMETIMES, the btnlogin_Click is activated AGAIN !
I don't have a definative answer on exactly what is happening, but in searching up APPLE iPhone feedback, I am seeing that the iPhone can sometimes cause a Double Click to happen, rather than a Single click. I will investigate this over time and hopefully come back with a logical explanation.
The bottom line is that if I step the program through with an iPhone connection, I can get the system to almost behave properly, but sometimes get some spurious Java exceptions which throw the user out - like NullPointerExceptions.
I will persevere when time permits until I can resolve this - otherwise it becomes a lost cause when half the world seems to want to use the Apple iPhone.

The more I try to understand the problem, the more it points towards a phone problem rather than an application problem.
The challenge may be to find a work around within the application.

QUESTION: Would it be wise to insert a WAIT delay in strategic places ?
Like straight after the rs = Main.sql1.ExecQuery2("select * from users etc etc ) statement ? (Because sometimes the ws.Session.SetAttributes don't seem to be setting.)
 

Attachments

  • SignInClick.JPG
    32.6 KB · Views: 110
Upvote 0

EnriqueGonzalez

Expert
Licensed User
Longtime User
Sounds like this could be the problem

In fact, apple foces browsers to use the safari engine instead of their own. So that could be theexplanation
 
Upvote 0

Intelemarketing

Active Member
Licensed User
Longtime User
Thanks for your interest - I am really going nuts over this - Everything works except iPhone (And I am using the very latest iPhone bought only 2 weeks ago)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…