Popular questions for Oreo Fashion App

Setting Login Google

@since v1.2.3

  1. Check this video to create a Firebase project: https://docs.rnlab.io/docs/v1/settings/login-google
  2. Get file google-services.json (Android), and GoogleService-Info.plist (ios) add to your project.
  3. Config Web client ID (This config will fix issue can’t get email on Android)

Get client_id here:

Add to file rn_oreo/src/config/auth.js:

  1. Authenticating Your Client
    https://developers.google.com/android/guides/client-auth

Issues:

2 Likes

Setting Login Apple

  1. Open the project on Xcode
    apple-login-1
  2. Select Sign in with Apple which will appear at the bottom as highlighted. If successful, your status should show no error message like below.
    apple-login-2
1 Like

Change splash screen image

Splash size 640x1136px

  • Android

    rn_oreo/android/app/src/main/res/drawable/splash.png
    
  • iOS

    Open x code replaces splash.png
    

    image

1 Like

Enable video for getting started screen
Set true to enable video

const ENABLE_VIDEO = true;

image

1 Like

Make default RTL

  1. Change your website to default RTL language (Ex: Arabic)
  2. In file

Change the language code too (Ex: ar)

The app will detect the direction to display.

2 Likes

Config Rate app

Open the file src/config/config-rate.js and update Apple Store ID and ApplicationId

Note: GooglePackageName it’s ApplicationId on Android

4 Likes

Excludes categories

Open file src/config/category.js

Add ids to

1 Like

Add custom fonts

@since 1.3.9

Take a look this video: https://drive.google.com/file/d/1qxJf__Wc43P2o7d0R30RNpgQA6gLZUcD/view?usp=sharing

2 Likes

Change default country code

@sine 1.3.9

When you enable login via SMS, the phone input number can change default by setting in the file: src/config/config-input-phone-number.js

image

2 Likes

Mask website language and app language

  1. Check your default language code
    go there https://your-domain-name.com/wp-json/rnlab-app-control/v1/settings change your-domain-name to your domain. After that you will see this:

image

You will see your language code es

tip: I’m using JSON Formatter extension on Chrome to display JSON format

  1. Config on App.
  • In folder src/locales you will see 2 files en.json and ar.json just duplicate one from en.json it should be es.json
    like this:

image

  • Open file file `index.js’ same folder and add this:

  • Open file config-i18n.js and change like this

  • Change default language code in src/modules/common/constants.js too:

1 Like

@since 1.4.2

Digits plugins

If you bought that plugin on Codecanyon and digrestapi You can enable config in file

src/config/auth.js and set to TRUE

export const SUPPORT_DIGITS_PLUGIN = true;

Note: If you using Firebase you don’t need do this step we already support with Digits.

2 Likes

PHP HTTP AUTHORIZATION HEADER ENABLE

Most of the shared hosting has disabled the HTTP Authorization Header by default.

To enable this option you’ll need to edit your .htaccess file adding the follow

RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]

WPENGINE

To enable this option you’ll need to edit your .htaccess file adding the follow

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
3 Likes

Login Facebook on iOS

Config in Facebook App

Config In App

2 Likes

Can’t register on Android Emulator.

1 Like

Get Page, Product, Category, Post ID

  • Same edit a category :

2 Likes

Validate product add-ons required field

Change number 3 to 4 in this file wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-cart.php

1 Like

Update file GoogleService-Info.plist

Download the GoogleService-Info.plist file.

Using Xcode, open the projects /ios/{projectName}.xcodeproj file (or /ios/{projectName}.xcworkspace if using Pods).

Right click on the project name and “Add files” to the project, as demonstrated below:

Download the GoogleService-Info.plist file.

Using Xcode, open the projects /ios/{projectName}.xcodeproj file (or /ios/{projectName}.xcworkspace if using Pods).

Right click on the project name and “Add files” to the project, as demonstrated below:

Select the downloaded GoogleService-Info.plist file from your computer, and ensure the “Copy items if needed” checkbox is enabled.

4 Likes
  • Issue can’t login Facebook on Android*
  1. Get SHA1 from Google play public

  1. Use this site convert to HASH

http://tomeko.net/online_tools/hex_to_base64.php

  1. Update HASH to Facebook App.