@oditha elama
Posts made by dev_lak
-
RE: Ionic Firebase social login help
@oditha web client id eka firebase eke google login ekt gyama penwnwa
-
RE: Ionic Firebase social login help
a machna auth eka
import auth from 'firebase/app';
meken enne -
RE: Ionic Firebase social login help
@oditha oka balal kynna bro, wadanm fb code ekath dannam, Ionic version eka mkkda use krna?
-
RE: Ionic Firebase social login help
@oditha me code eka balann terenwada kyla, platform and android hari ios hrinm me widiyt krnna, Google plus plugin eka use krnna native popup eka ganna
Auth Service
import { GooglePlus } from '@ionic-native/google-plus/ngx'; import { Platform } from '@ionic/angular'; import { AngularFireAuth } from "@angular/fire/auth"; constructor( public ngFireAuth: AngularFireAuth, private google: GooglePlus, private platform: Platform, ) { } // Google Login googleLogin() { let params = {}; if (this.platform.is('android')) { params = { webClientId: '', // put webclientID 'string' offline: true }; } return this.google.login(params); } // Callback method for Google Login onGoogleLoginSuccess(accessToken, accessSecret) { const credential = accessSecret ? auth.auth.GoogleAuthProvider.credential(accessToken, accessSecret) : auth.auth.GoogleAuthProvider.credential(accessToken); return this.ngFireAuth.signInWithCredential(credential); }
Login Page
import { AuthService } from '../../services/auth.service'; constructor( private auth: AuthService, ) {} googleLogin() { this.auth.googleLogin() .then(response => { const { idToken, accessToken } = response; this.auth.onGoogleLoginSuccess(idToken, accessToken) .then(user => { console.log(user.user); }) .catch(err => { console.log(err) }); }
-
RE: Problem on migration : products category foreign key
@kasun-rathnayake Possible Causes
- Data type on category_id column and id column on category table mismatch
- Check migration order, category table should created first prior to products table
-
RE: Ionic Firebase social login help
@oditha ahh native popup eka ganna me widiyata try karala blnna
let params = {}; if (this.platform.is('android')) { params = { webClientId: '', // webclientID 'string' offline: true }; } return this.google.login(params);
-
RE: Ionic Firebase social login help
@oditha android device eke wada karannanm, sign key eke SHA signature eka add krnna one google developer console ekata, facebook ekatath key ekak add krnna one
-
Flutter Camping App UI
Let's learn to build this Camping App using Flutter 👇 👇
YouTube - https://youtu.be/Po2yjva9iic
Link to Source Code can be found on YouTube Video description.Give me support by 👇 👇
✅ Subscribe ✅ Share ✅ Comment & Stay Connected! -
RE: Ionic Firebase social login help
@oditha mona social login ekata integrate karanna one?
-
RE: Flutter App එකක සිංහල අකුරු ටයිප් කරන්න
unicode use karala balanna
-
RE: Laravel IPG Integration
@Nubelle bro i haven't used their API's, but definitely they should provide documentation for API integration, if we have Doc we can help
-
Flutter Auth UI
Flutter UI Series started, watch my first video on YouTube :point_down: :point_down:
Source Code - https://github.com/gihan667/flutter-login-ui
Coming up episodes will be updated here, stay connected.
Give me support by 👇 👇
✅ Subscribe ✅ Share ✅ Comment & Stay Connected!