mobileapps

  • 773
Posts
Posts' Comments
  • Question why do we need to disable splash in order for app to work ? if its enable in studio the app keeps blinking. And una.io app works fine with splash on. Please enlighten us all Alex T⚜️ Andrew Boon Anton L 

    0 0 0 0 0 0
    Discussions
    Forum's Comments
    • 1. All styles are in dynamicStyles at the end of App.js, however some items from header don't have styles, then you need to create new style, for example:

          myStyle: {
              color: red,
          },

      and apply it where needed, for example:

      <Button transparent>
          <Icon style={styles.myStyle} name='search' onPress={o.onSearchMenu} />
      </Button>

       2. It's some sort of bug I think in the theme library which we're using for UNA mobile app, but you can try to play with this code (particularly with setBarStyle), by removing functionality for dark//light mode support and make it static, so it should work then:

              const isDarkMode = useDarkMode();
              var sBarStyle = 'dark-content';
              if (Platform.OS === 'android' || isDarkMode)
                  sBarStyle = 'light-content';            
              if (Platform.OS === 'android')
                  StatusBar.setBackgroundColor('#076fd3');
              StatusBar.setBarStyle(sBarStyle, false);         

      3. Alexey could you please assist with this point ?

      0 0 0 0 0 0
      • To redirect user to some other page instead of homepage after login in mobile app

        Try to change all occurrences of 

        ${BASE_URL}?skin=${TEMPLATE}

        in App.js to

        ${BASE_URL}?relocate=ABC&skin=${TEMPLATE}

        Where ABC is URL where you want user redirect to after login

        0 0 0 0 0 0
        • To make PUSH working you need to open OneSignal account then setup it properly for Web Browsers, Android and iOS[if needed] in OneSignal - then have necessary instructions on how to do it. Then specify OneSignal App ID in UNA and mobile apps.

          Also you can refer to more detailed description by Mosi76
          https://una.io/cmts.php?sys=bx_forum&id=4009&cmt_id=16180

          0 0 0 0 0 0
          • The code for this button is in mobile app App.js file:

            <Button vertical onPress={this.onMessengerMenu.bind(this)} badge={this.state.data.bubbles['notifications-messenger'] > 0 ? true : false}>
                {this.state.data.bubbles['notifications-messenger'] > 0 && 
                    (<Badge><Text>{this.state.data.bubbles['notifications-messenger']}</Text></Badge>)
                }
                <Icon name="comments" type="FontAwesome5" solid />
            </Button>

            To change it to your own you can replace it with this:

            <Button vertical onPress={() => this.injectJavaScript(`window.location = '${BASE_URL}page/privacy';`)}>
                <Icon name="car" type="FontAwesome5" solid />
            </Button>

            Just change, page/privacy URL and car icon to your own, icon name can be any icon from FontAwesome5 set:
            https://oblador.github.io/react-native-vector-icons/

            0 0 0 0 0 0
            Added a discussion  to  , mobileapps

            These bars are part of react-native, so you need to customize it in mobile apps source code App.js file.

            Change this code:

              renderToolbar () {

                         return (

                             




            to



              renderToolbar () {

                         return (

                           

            yourcolor'}}>




            Similar approach should work for footer. Also you can add style classand change more design styles, refer to documentation on how to add style sheets




            Credit to :  Alex T  



            • 2664
              • Hi Alex T⚜️ we found out the the app,js was updated we cannot edit it now please advice. ty

                0 0 0 0 0 0
                • Look at the end of the file App.js

                  0 0 0 0 0 0
                  • image_transcoder.php?o=bx_froala_image&h=3752&dpx=1&t=1592843422

                    0 0 0 0 0 0
                    Not logged in users can't 'Comments Post'.
                    Added a discussion  to  , mobileapps

                    I'm trying to get the native MobileApp running.

                    I've completed all the steps but when I build/run the app in the simulator it stalls at the splash screen and goes no further.

                    The build completes with no errors (only 4 warnings).

                    Any idea anyone?

                    image_transcoder.php?o=bx_froala_image&h=2543&dpx=2&t=1574882183

                    • 1871
                      • It seems to be working now. I had to restart the “Metro Bundler” but not sure why this caused the app to crash. I’ve had a few random crashes since but it works most times now.

                        0 0 0 0 0 0
                        • What is your opinion on it?

                          0 0 0 0 0 0
                          • Early days as yet but seems ok so far, running in IOS & Android simulators

                            I’ve not purchased Nexus on my site as yet so currently using it on on MacBook via simulators back to UNA.IO site. It runs pretty much the same as the app on my phone back to UNA.IO  

                            Its seem straight forward to setup a development environment on MacOS although the instructions are very slightly different from the ones given and the video on UNA.IO. I think because React Native has been updated.

                            Only weird thing I’ve noticed is I have to close the Metro Bundler window (part of React Native compilation/execution process) each time I want to run the IOS simulator else the UNA app crashes on startup (see image) but this doesn’t seem to happen with the React Native demo app. it’s a minor thing though.

                            Also there are some warnings displayed even when it runs correctly. This also happens in the Instructional video on UNA.IO but it doesn’t tell you how to get rid of them. I’ll post a question on that. 

                            image_transcoder.php?o=bx_froala_image&h=2554&dpx=2&t=1575026390

                            0 0 0 0 0 0
                            Not logged in users can't 'Comments Post'.
                            Added a post  to  , mobileapps
                            • 4697
                              • 👍

                                0 0 0 0 0 0
                                • Some of the basic steps are not included and I had to watch this video over and over again to notice some of the things Alex should have began with. Firstly the black screen, what is it? I only realised after a lot of confusion that it's a Terminal, and judging from the menu I saw, an Apple computer is being used to create this iOS App. 

                                  It may sound stupid or irrelevant, but we need to know these things, step by step. A tutorial is supposed to start things from scratch, before you install any patches or anything like that. Some people (like myself) are not experienced in this field, we're new, so being specific really saves a lot of time. It's only people who've used a terminal before that'll know what it looks like, so what about those who've never seen it before? You need to state if an Apple computer is compulsory for the creation of an iOS App or if any is fine, etc. Information is important, otherwise you leave us with a lot of questions and frustrations (how to change colour, icons, etc.) 

                                  So please be specific. From start to finish. Even if the video ends up taking 3 hours, it's fine, as long as you don't leave anything out.

                                  0 0 0 0 0 0
                                  • Thank you for the remarks, I will take them into account for the future videos

                                    0 0 0 0 0 0
                                  • All this is showing is how to download the mobile build code and run it in a simulator... Is there another video explaining changing the config within the app and uploading the build from xcode to the applestore?

                                    0 0 0 0 0 0
                                    Not logged in users can't 'Comments Post'.
                                    Added a post  to  , mobileapps
                                    • 4439
                                      • Question why do we need to disable splash in order for app to work ? if its enable in studio the app keeps blinking. And una.io app works fine with splash on. Please enlighten us all Alex T⚜️ Andrew Boon Anton L 

                                        0 0 0 0 0 0
                                        • 0 0 0 0 0 0
                                          • Thanks Alex T⚜️ will keep track on this ty

                                            0 0 0 0 0 0
                                          • I am testing mine on the android emulator. It brings up the app and gives me what I see via the website. I click on the Login link in the menu, but it just brings me to the homepage again. I click on Join Now and it just says Access Denied. Not Logged In Users Cant "Create Account". Have any idea why Alex T⚜️ 

                                            0 0 0 0 0 0
                                            • Will do and report back Alex T⚜️ 

                                              0 0 0 0 0 0
                                              • image_transcoder.php?o=bx_froala_image&h=3835&dpx=2&t=1595709190

                                                0 0 0 0 0 0
                                                • I gave Unauthenticated permission also and it works now showing the login page. Now I need to figure out how to compile it for Android and then get a way to do it for iOS.

                                                  0 0 0 0 0 0
                                                Not logged in users can't 'Comments Post'.
                                                Followers
                                                Empty

                                                UNA - Network Infrastructure for Communities

                                                Close