Rocket LMS Mobile App - Learning Management System App

Rocket LMS Mobile App - Learning Management System App v2.1

No permission to download
  • Welcome to Babiato Forum! All Resources are 100% clean and Safe to Use

dreamerxwait

Member
May 7, 2022
30
6
8
How to create API_KEY in env file ? Is it same key as env has : APP_KEY = base64:randomtext
??

If I add this app key to mobile app , it opens app and app crashes. Can you help
 

Mrsam_1

Well-known member
Administrative
Trusted Seller
Jul 25, 2018
57,193
62,449
120
For handling the token encryption, generate a secret key by executing the following command.

php artisan jwt:secret

We have successfully generated the JWT Secret key, and you can check this key inside the .env file.
JWT_SECRET=secret_jwt_string_key
 

dreamerxwait

Member
May 7, 2022
30
6
8
Ok yes, I have created and it's in the ENV file , This is the API_KEY?
I have added it and the app is still crashing.
I don't know where I am mistaken.
 

Attachments

  • Screenshot 2022-05-27 204844.jpg
    Screenshot 2022-05-27 204844.jpg
    89.7 KB · Views: 113

Mrsam_1

Well-known member
Administrative
Trusted Seller
Jul 25, 2018
57,193
62,449
120
do not worry it also crashes to me as it does to you .. I do not understand if there is something in the api in my opinion there is something wrong there ..
 

veera

Active member
Banned User
May 19, 2020
387
130
43
53
INDIA
livepollachi.com
please @veera reply fix login help me thanks advance!

replace with this in
res/layout/frag_sign_in.xml


XML:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/pageBg"
    android:fillViewport="true">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/margin_16"
        android:layout_marginEnd="@dimen/margin_16"
        android:animateLayoutChanges="true">

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/signInTitleTv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/margin_32"
            android:fontFamily="@font/bold"
            android:gravity="center"
            android:text="@string/welcome_back"
            android:textColor="@color/text_color"
            android:textSize="@dimen/textsize_28d"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:ignore="SpUsage" />

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/signInDescTV"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/margin_16"
            android:fontFamily="@font/regular"
            android:gravity="center"
            android:text="@string/sign_in_desc"
            android:textColor="@color/text_color2"
            android:textSize="@dimen/textsize_15d"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/signInTitleTv"
            tools:ignore="SpUsage" />

        <FrameLayout
            android:id="@+id/signInGoogleLayout"
            android:layout_width="90dp"
            android:layout_height="@dimen/btn_height"
            android:layout_marginTop="@dimen/margin_50"
            android:layout_marginEnd="@dimen/margin_16"
            android:background="@drawable/round_view_white_corner15"
            android:clickable="true"
            android:focusable="true"
            android:foreground="@drawable/ripple_effect_corner_15"
            app:layout_constraintEnd_toStartOf="@+id/signInFacebookLayout"
            app:layout_constraintHorizontal_chainStyle="packed"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/signInDescTV">

            <androidx.appcompat.widget.AppCompatImageView
                android:layout_width="35dp"
                android:layout_height="35dp"
                android:layout_gravity="center"
                app:srcCompat="@drawable/ic_google" />

        </FrameLayout>

        <FrameLayout
            android:id="@+id/signInFacebookLayout"
            android:layout_width="90dp"
            android:layout_height="@dimen/btn_height"
            android:layout_marginTop="@dimen/margin_50"
            android:background="@drawable/round_view_white_corner15"
            android:clickable="true"
            android:focusable="true"
            android:foreground="@drawable/ripple_effect_corner_15"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/signInGoogleLayout"
            app:layout_constraintTop_toBottomOf="@+id/signInDescTV">

            <androidx.appcompat.widget.AppCompatImageView
                android:layout_width="35dp"
                android:layout_height="35dp"
                android:layout_gravity="center"
                app:srcCompat="@drawable/ic_facebook" />

        </FrameLayout>


        <com.google.android.material.textfield.TextInputEditText
            android:id="@+id/signInEmailPhoneEdtx"
            android:layout_width="0dp"
            android:layout_height="@dimen/edtx_height_size"
            android:layout_marginTop="@dimen/margin_50"
            android:background="@drawable/round_view_white_corner20"
            android:drawableStart="@drawable/ic_message"
            android:drawablePadding="@dimen/margin_16"
            android:fontFamily="@font/regular"
            android:hint="@string/email_or_phone"
            android:inputType="text"
            android:text=""
            android:maxLength="255"
            android:maxLines="1"
            android:paddingStart="@dimen/padding_16"
            android:paddingEnd="@dimen/padding_16"
            android:textColor="@color/text_color"
            android:textColorHint="@color/gull_gray"
            android:textSize="@dimen/textsize_15d"
            android:gravity="start|center_vertical"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/signInFacebookLayout" />


        <com.google.android.material.textfield.TextInputEditText
            android:id="@+id/signInPasswordEdtx"
            android:layout_width="0dp"
            android:layout_height="@dimen/edtx_height_size"
            android:layout_marginTop="@dimen/margin_16"
            android:background="@drawable/round_view_white_corner20"
            android:drawableStart="@drawable/ic_password"
            android:drawablePadding="@dimen/margin_16"
            android:fontFamily="@font/regular"
            android:hint="@string/password"
            android:inputType="textPassword"
            android:maxLength="100"
            android:maxLines="1"
            android:gravity="start|center_vertical"
            android:paddingStart="@dimen/padding_16"
            android:paddingEnd="@dimen/padding_16"
            android:textColor="@color/text_color"
            android:textColorHint="@color/gull_gray"
            android:textSize="@dimen/textsize_15d"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/signInEmailPhoneEdtx" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/signInLoginBtn"
            android:layout_width="0dp"
            android:layout_height="@dimen/btn_height"
            android:layout_marginTop="@dimen/margin_32"
            android:enabled="false"
            android:fontFamily="@font/regular"
            android:minWidth="170dp"
            android:text="@string/login"
            android:textAllCaps="false"
            android:textColor="@color/white"
            android:textSize="@dimen/textsize_15d"
            app:backgroundTint="@color/button_selector"
            app:cornerRadius="@dimen/btn_corner_radius"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/signInPasswordEdtx"
            app:rippleColor="@color/rippleColor"
            tools:ignore="SpUsage" />

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/signInLoginErrorTv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/margin_16"
            android:layout_marginBottom="@dimen/margin_16"
            android:fontFamily="@font/regular"
            android:gravity="center"
            android:text="@string/invalid_username_password"
            android:textColor="@color/red"
            android:textSize="@dimen/textsize_14d"
            android:visibility="gone"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/signInLoginBtn"
            app:layout_constraintVertical_bias="0.5" />


        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/signInTermsAndServicesTv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/margin_16"
            android:layout_marginBottom="@dimen/margin_16"
            android:fontFamily="@font/regular"
            android:gravity="center"
            android:maxWidth="200dp"
            android:text="@string/terms_and_services"
            android:textColor="@color/text_color3"
            android:textSize="@dimen/textsize_14d"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/signInLoginErrorTv"
            app:layout_constraintVertical_bias="0.5" />

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/signInHaveNoAccountTv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/margin_16"
            android:layout_marginBottom="@dimen/margin_16"
            android:fontFamily="@font/regular"
            android:gravity="center"
            android:text="@string/donnot_have_account"
            android:textColor="@color/text_color5"
            android:textSize="@dimen/textsize_15d"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toStartOf="@id/signInSignUpBtn"
            app:layout_constraintHorizontal_chainStyle="packed"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/signInTermsAndServicesTv"
            app:layout_constraintVertical_bias="0.5" />


        <com.google.android.material.button.MaterialButton
            android:id="@+id/signInSignUpBtn"
            style="@style/Widget.MaterialComponents.Button.TextButton"
            android:layout_width="70dp"
            android:layout_height="30dp"
            android:fontFamily="@font/regular"
            android:insetLeft="0dp"
            android:insetTop="0dp"
            android:insetRight="0dp"
            android:insetBottom="0dp"
            android:padding="0dp"
            android:text="@string/sign_up"
            android:textAllCaps="false"
            android:textColor="@color/text_color5"
            android:textSize="@dimen/textsize_15d"
            app:layout_constraintBottom_toBottomOf="@+id/signInHaveNoAccountTv"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/signInHaveNoAccountTv"
            app:layout_constraintTop_toTopOf="@+id/signInHaveNoAccountTv"
            app:rippleColor="@color/rippleColor"
            tools:ignore="SpUsage" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/signInForgotPasswordBtn"
            style="@style/Widget.MaterialComponents.Button.TextButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:fontFamily="@font/medium"
            android:insetLeft="0dp"
            android:insetTop="0dp"
            android:insetRight="0dp"
            android:insetBottom="0dp"
            android:padding="0dp"
            android:text="@string/forget_password"
            android:textAllCaps="false"
            android:textColor="@color/gull_gray"
            android:textSize="@dimen/textsize_14d"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/signInSignUpBtn"
            app:layout_constraintVertical_bias="0.2"
            app:rippleColor="@color/rippleColor"
            tools:ignore="SpUsage" />


    </androidx.constraintlayout.widget.ConstraintLayout>

</ScrollView>
 

Mrsam_1

Well-known member
Administrative
Trusted Seller
Jul 25, 2018
57,193
62,449
120
nothing keeps crashing even with this change

error: {"success": false, "status": "unauthorized", "message": "auth.unauthorized"}
 

About us

  • Babiato Forum - The webmaster community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day, updating Daily resource to make sure our community is one of the best.

Quick Navigation

User Menu