Category : android

I have an hybrid vuejs app, that is working correctly on the web version, but that is getting 419 from the Laravel server when calling it from the Android version. AXIOS CALL vm.axios.get(‘/sanctum/csrf-cookie’).then(response => { vm.logging = true; vm.axios({ method: ‘POST’, url: ‘/api/login/employee’, data:{ email: vm.email, password: vm.password }, }).then(function (response) { console.log(response.data) if(response.data.success){ vm.axios.defaults.headers.common[‘Authorization’] ..

Read more

Can you tell me please how to convert my already working login with social provider function in Laravel to API so I can connect it to my mobile application and log in with Facebook? hit the same laravel’s database: public function handleProviderCallback($provider) { try{ $userinfo = Socialite::driver($provider)->user(); }catch (Exception $e){ return redirect()->intended(‘/’); } Log::debug($userinfo->getId()); $socialProvider ..

Read more

i am sending an image to laravel api using retrofit D/NetworkManagementSocketTagger: tagSocket(74) with statsTag=0xffffffff, statsUid=-1 I/mple1.messegin: Background concurrent copying GC freed 21904(27MB) AllocSpace objects, 14(3MB) LOS objects, 50% free, 18MB/37MB, paused 402us total 102.147ms E/FF1: 500 Response{protocol=http/1.1, code=500, message=Internal Server Error, url=http://192.168.1.8/company_messenger/public/apistore} i see the first line then after a moment the other tow lines ..

Read more

I am using Retrofit. The response that i get in postman comes in 1-2 seconds. But, when i hit in andorid device for first time it takes 15-20 seconds ans when second time it get the reponse as in normal time. 2020-07-02 22:37:35.069 7244-8088/com.examlple.frn D/OkHttp: <– 200 OK http://fern.com/android/public/api/v1/get_user_settings (31607ms) 2020-07-02 22:37:35.070 7244-8088/com.examlple.frn D/OkHttp: Server: ..

Read more

I am developing a flutter app which use flutter_pusher_client with laravel_echo. The websocket server is developed using Laravel WebSockets . Also added internet permission to AndroidManifest.xml and REST API requests works fine. The issue is FlutterPusher does not connect to websocket server in release build but connects and works fine in debug build. Source: Laravel ..

Read more

We are using google LoyaltyWalletObject service in our application, this is working fine. As per system requirement it need to change the background color of pass, as per documentation the following methods are deprecated and not in use public String getInfoModuleDataHexBackgroundColor () public String getInfoModuleDataHexFontColor () So kindly guide us solution for it or any ..

Read more

I have some api endpoints in my laravel app. They do work fine on most of my devices (phones and tablets). A curl from localhost also works fine. But one phone does not work. In the logs I get: <!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”> <html><head> <title>401 Unauthorized</title> </head><body> <h1>Unauthorized</h1> <p>This server could not verify ..

Read more

I have completed my larval project, I need to create a mobile app. I decide to make a webview to display my laravel into it. mainactivity package com.example.app; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class MainActivity extends Activity { private WebView mWebView; @Override @SuppressLint(“SetJavaScriptEnabled”) protected void onCreate(Bundle savedInstanceState) ..

Read more

In firebase database i have two columns names user_id Bookondatetime user id like 1001,1002,1003… and Bookondatetime like – 2020-01-06 06:35:57 ,2020-01-07 07:35:57,2020-01-10 09:35:57…. I just want to hit a api like – http://demo.com/api/driver/1001 with user_id when any date and time match with current date and time from firebase Please give suggestions or any alternate any ..

Read more