Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop
    1. Home
    2. oditha
    3. Posts
    • Profile
    • Following 0
    • Followers 2
    • Topics 16
    • Posts 75
    • Best 15
    • Controversial 0
    • Groups 1

    Posts made by oditha

    • RE: Any one know to get water electricity (LECO,SLT ) payment api for laravel

      @root Yes. I will do that ASAP

      posted in Laravel Framework
      oditha
      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.

      posted in Laravel Framework
      oditha
      oditha
    • RE: Experienced ionic Developer needed!

      @root Requirement eka balal budget ekak denna mata.

      posted in Hybrid App Development
      oditha
      oditha
    • 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

      posted in Front-End Development
      oditha
      oditha
    • 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

      posted in Hybrid App Development
      oditha
      oditha
    • 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 }
                                ]
      

      ස්තූතියි

      posted in Front-End Development
      oditha
      oditha
    • RE: Ionic Firebase social login help

      hri bro. man try karannam.. thanx

      posted in Hybrid App Development
      oditha
      oditha
    • 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?

      posted in Hybrid App Development
      oditha
      oditha
    • RE: Ionic Firebase social login help

      @dev_lak thank you very much, brother

      posted in Hybrid App Development
      oditha
      oditha
    • 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?

      posted in Hybrid App Development
      oditha
      oditha
    • 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?

      posted in Hybrid App Development
      oditha
      oditha
    • RE: Ionic Firebase social login help

      @oditha said in Ionic Firebase social login help:

      @oditha

      @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.

      posted in Hybrid App Development
      oditha
      oditha
    • RE: Ionic Firebase social login help

      @oditha

      @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.

      posted in Hybrid App Development
      oditha
      oditha
    • RE: Ionic Firebase social login help

      Me kotasa add karagen passe ionic serve run karama blank black page ekak enne browser eket

      posted in Hybrid App Development
      oditha
      oditha
    • 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

      posted in Hybrid App Development
      oditha
      oditha
    • 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.

      posted in Hybrid App Development
      oditha
      oditha
    • 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?

      posted in Hybrid App Development
      oditha
      oditha
    • RE: Ionic Firebase social login help

      @dev_lak Thanx bro. Ionic 5

      posted in Hybrid App Development
      oditha
      oditha
    • RE: Ionic Firebase social login help

      @dev_lak meka nam balala karaganna puluwan wei wage. ethakota facebook signin eke popup eka ganna widiyak thiyeda?

      posted in Hybrid App Development
      oditha
      oditha
    • 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?

      posted in Hybrid App Development
      oditha
      oditha
    • 1
    • 2
    • 3
    • 4
    • 1 / 4