@root Yes. I will do that ASAP
Posts made by oditha
-
RE: Any one know to get water electricity (LECO,SLT ) payment api for laravel
We can give solutions including CEB, Water bill, Mobile Bills, Reload API Solution. Please send an email to [email protected] for more infromaion.
-
RE: Experienced ionic Developer needed!
@root Requirement eka balal budget ekak denna mata.
-
RE: Typescrypt array help.
@nb said in Typescrypt array help.:
distance: Number } let steps: Array<Steps> = [ { startDate: '2020-10-21', endDate: '2020-10-22', steps: 101 }, { startDate: '2020-10-22', endDate: '2020-10-23', steps: 102 }, { startDate: '2020-10-24', endDate: '2020-10-25', steps: 103 } ]; let activity: Array<Distance> = [ { startDate: '2020-10-21', endDate: '2020-10-22', distance: 101 }, { startDate: '2020-10-22', endDate: '2020-10-23', distance: 102 }, { startDate: '2020-10-26', endDate: '2020-10-26', distance: 103 } ]; function join<L extends Record<string,any>, R extends Record<string,any>>(left: Array<L>, right: Array<R>, by: Array<string>) { const joined: Array<L&R> = []; for (let l of left) { const fromRight = right.find(r => by.every((curr) => (r[curr] == l[curr]), true)) if (fromRight === undefined) continue; joined.push({ ...fromRight, ...l}) } return joined; } console.log(join(steps, activity, ['startDate', 'endDate'])) /* [LOG]: [{ "startDate": "2020-10-21", "endDate": "2020-10-22", "distance": 101, "steps": 101 }, { "startDate": "2020-10-22", "endDate": "2020-10-23", "distance": 102, "steps": 102 }] */
Thanx Brother. man try karala balannam meka
-
Experienced ionic Developer needed!
Hello
We are looking for an experienced ionic developer to work in fitness challenging app. If interested please send PM.
Thanx
-
Typescrypt array help.
Parent array
let activity = [ { startDate: 2020-10-21, endDate: 2020-10-22, steps: 100, distance: 100 }, { startDate: 2020-10-22, endDate: 2020-10-23, steps: 100, distance: 100 } ]
මෙන්න මේ උඩ තියෙන Array එකට පහත දක්වලා තියෙන arrays 2න් ඩේටා ගන්න ඕන. මේ උඩ තියෙන ඇරේ එකේ startDate, endDate වලට සමාන අගයන් තියෙන පහල තියෙන ඇරෙස් වලින් ඩේටා අරගෙන ෆිල් කරවන්න ඕන. මේක කොහොමද කරගන්නෙ?
let steps= [ { startDate: 2020-10-21, endDate: 2020-10-22, steps: 100 }, { startDate: 2020-10-22, endDate: 2020-10-23, steps: 100 } ]
let activity = [ { startDate: 2020-10-21, endDate: 2020-10-22, distance: 100 }, { startDate: 2020-10-22, endDate: 2020-10-23, distance: 100 } ]
ස්තූතියි
-
RE: Ionic Firebase social login help
hri bro. man try karannam.. thanx
-
RE: Ionic Firebase social login help
@dev_lak said in Ionic Firebase social login help:
Auth Service
Auth Service ekedi api facebook ekata sambanayen plugins use karanwada? import statement thiyenwada?
-
RE: Ionic Firebase social login help
@dev_lak thank you very much, brother
-
RE: Ionic Firebase social login help
@dev_lak meka hari brother mn wade hariyata karagatta. facebook eken native popup eka ganna ekatat help ekak denna puluwanda?
-
RE: Ionic Firebase social login help
@dev_lak said in Ionic Firebase social login help:
@oditha oka balal kynna bro, wadanm fb code ekath dannam, Ionic version eka mkkda use krna?
@dev_lak Bro google native popup eka completed. facebook ekaat help ekak denanna puluwanda?
-
RE: Ionic Firebase social login help
@oditha said in Ionic Firebase social login help:
@oditha said in Ionic Firebase social login help:
Me kotasa add karagen passe ionic serve run karama blank black page ekak enne browser eket
private google: GooglePlus
Meka constructor ekata dammama blank screen.
app.module.ts eka provider add karala me issue eka fix karagatta.
-
RE: Ionic Firebase social login help
@oditha said in Ionic Firebase social login help:
Me kotasa add karagen passe ionic serve run karama blank black page ekak enne browser eket
private google: GooglePlus
Meka constructor ekata dammama blank screen.
-
RE: Ionic Firebase social login help
Me kotasa add karagen passe ionic serve run karama blank black page ekak enne browser eket
-
RE: Ionic Firebase social login help
@dev_lak mekedi android source eka patten karanna monwa hri thiyenwada? meka dala test karama splash screen eke nawatila thiyenwa
-
RE: Ionic Firebase social login help
@dev_lak Me dekma hri. mama meka try karala feedback ekak dennam. again thank you very much for the help.
-
RE: Ionic Firebase social login help
@dev_lak Thwama Naha bro.
Me line eke
const credential = accessSecret ? auth.auth.GoogleAuthProvider.credential(accessToken, accessSecret) : auth.auth.GoogleAuthProvider.credential(accessToken);
auth.auth not found error Eka throw wenwa.
Web Client Id eka kohomda ganne?
-
RE: Ionic Firebase social login help
@dev_lak meka nam balala karaganna puluwan wei wage. ethakota facebook signin eke popup eka ganna widiyak thiyeda?
-
RE: Ionic Firebase social login help
@dev_lak auth service eke code eka
signInWithFacebook() { const provider = new firebase.auth.FacebookAuthProvider(); // const scopes = ['user_birthday']; return this.socialSignIn(provider.providerId); } signInWithGoogle() { const provider = new firebase.auth.GoogleAuthProvider(); const scopes = ['profile', 'email']; return this.socialSignIn(provider.providerId, scopes); } socialSignIn(providerName: string, scopes?: Array<string>): Promise<any> { const provider = new firebase.auth.OAuthProvider(providerName); // add any permission scope you need if (scopes) { scopes.forEach(scope => { provider.addScope(scope); }); } if (this.platform.is('desktop')) { return this.afAuth.signInWithPopup(provider); } else { // web but not desktop, for example mobile PWA return this.afAuth.signInWithRedirect(provider); } }
Me page eke code eaka.
facebookSignIn() { this.authService.signInWithFacebook() .then((result: any) => { if (result.additionalUserInfo) { this.authService.setProviderAdditionalInfo(result.additionalUserInfo.profile); } // This gives you a Facebook Access Token. You can use it to access the Facebook API. // const token = result.credential.accessToken; // The signed-in user info is in result.user; this.tabs(); }).catch((error) => { // Handle Errors here. console.log(error); }); } googleSignIn() { this.authService.signInWithGoogle() .then((result: any) => { if (result.additionalUserInfo) { this.authService.setProviderAdditionalInfo(result.additionalUserInfo.profile); } // This gives you a Google Access Token. You can use it to access the Google API. // const token = result.credential.accessToken; // The signed-in user info is in result.user; this.tabs(); }).catch((error) => { // Handle Errors here. console.log(error); }); }
uda answer eka mata clear madi. mekata galpenna kiyanna puluwanda?