Android Question Starter Service Alternative in B4XPage

ProjectGroup19

Active Member
Licensed User
Greetings Community,

I'm getting started with B4XPages. I'm trying to convert my B4A app to B4XPages. @Erel recommends not to use the starter service. Where then, do i implement my keyValueStore values which are dependent to start my app.

Main Page
B4X:
If Starter.kvs.get("user")<>"" And Starter.kvs.Get("pass")<>"" And Starter.kvs.Get("approved")="Yes"  Then
'Start dashbord
else
'Start Login
 End if

FireBase Notification
B4X:
If Starter.kvs.Get("usertype")="Admin" Then
        fm.SubscribeToTopic("Admin") 
        Else
        fm.UnsubscribeFromTopic("Admin") '
    End If
 
Last edited:

ProjectGroup19

Active Member
Licensed User
Not 100% correct. There are cases where you should still use the starter service. For example, if your app can start from a background service then you should use the starter service to prepare anything needed for the service.
What if I want to create for B4I or B4J which does not have the starter service. How do I go about it then?
 
Upvote 0
Top