nativescript-contacts How to sync with google contacts?











up vote
0
down vote

favorite












Using Nativescript 5.0 with Angular



Using nativescript-contacts plugin to read, modify and create contact. Its working perfectly.



Contacts created by my Android App using nativescript-contacts are not getting sync with Google Contacts.



Andorid phone shows the newly created contact (name & number), so there is no problem in contact creation process, but I expect this newly created contact should get sync in with google contacts. I am checking google contacts on web using the same gmail account as it is used in Android phone.



I just want newly created contact to be backed up, so in future this phone breaks down, I will get all those contacts created by my App from google contacts.



I am using exactly same code as shown in this page of the plugin. https://www.npmjs.com/package/nativescript-contacts



Any pointers for me, to get it done? Thanks in advance.










share|improve this question


























    up vote
    0
    down vote

    favorite












    Using Nativescript 5.0 with Angular



    Using nativescript-contacts plugin to read, modify and create contact. Its working perfectly.



    Contacts created by my Android App using nativescript-contacts are not getting sync with Google Contacts.



    Andorid phone shows the newly created contact (name & number), so there is no problem in contact creation process, but I expect this newly created contact should get sync in with google contacts. I am checking google contacts on web using the same gmail account as it is used in Android phone.



    I just want newly created contact to be backed up, so in future this phone breaks down, I will get all those contacts created by my App from google contacts.



    I am using exactly same code as shown in this page of the plugin. https://www.npmjs.com/package/nativescript-contacts



    Any pointers for me, to get it done? Thanks in advance.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Using Nativescript 5.0 with Angular



      Using nativescript-contacts plugin to read, modify and create contact. Its working perfectly.



      Contacts created by my Android App using nativescript-contacts are not getting sync with Google Contacts.



      Andorid phone shows the newly created contact (name & number), so there is no problem in contact creation process, but I expect this newly created contact should get sync in with google contacts. I am checking google contacts on web using the same gmail account as it is used in Android phone.



      I just want newly created contact to be backed up, so in future this phone breaks down, I will get all those contacts created by my App from google contacts.



      I am using exactly same code as shown in this page of the plugin. https://www.npmjs.com/package/nativescript-contacts



      Any pointers for me, to get it done? Thanks in advance.










      share|improve this question













      Using Nativescript 5.0 with Angular



      Using nativescript-contacts plugin to read, modify and create contact. Its working perfectly.



      Contacts created by my Android App using nativescript-contacts are not getting sync with Google Contacts.



      Andorid phone shows the newly created contact (name & number), so there is no problem in contact creation process, but I expect this newly created contact should get sync in with google contacts. I am checking google contacts on web using the same gmail account as it is used in Android phone.



      I just want newly created contact to be backed up, so in future this phone breaks down, I will get all those contacts created by my App from google contacts.



      I am using exactly same code as shown in this page of the plugin. https://www.npmjs.com/package/nativescript-contacts



      Any pointers for me, to get it done? Thanks in advance.







      angular typescript nativescript google-contacts






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 at 1:02









      Pratik

      144




      144
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          The contacts plug-in saves the contact on the first available account on device, fortunately if that becomes your Google account then sync will be taken care by default.



          In case if that is not a Google account then you will have to override the save method to choose right account.






          share|improve this answer





















          • Manoj, stackoverflow should include lots of emojis to express gratitude towards people like you. Thanks a ton again. What should I study to become expert like you? My background is way back from classic ASP 3.0 (year 2000), VC++, MFC, XML, ColdFusion (Year 2000 again) and plenty of embedded programming & designing.
            – Pratik
            Nov 20 at 12:06










          • Thank you for the gratitude, but honestly I'm no expert. But if you ask me for suggestion, I have just one rule for myself - Learn any technology / language but from the basics. Often I see most people would skip basics and struggle a lot down the line. If you want to learn NativeScript, start from basics of JavaScript, OOPS, TypeScript, then bits of iOS & Android.
            – Manoj
            Nov 20 at 13:12











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53384777%2fnativescript-contacts-how-to-sync-with-google-contacts%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          The contacts plug-in saves the contact on the first available account on device, fortunately if that becomes your Google account then sync will be taken care by default.



          In case if that is not a Google account then you will have to override the save method to choose right account.






          share|improve this answer





















          • Manoj, stackoverflow should include lots of emojis to express gratitude towards people like you. Thanks a ton again. What should I study to become expert like you? My background is way back from classic ASP 3.0 (year 2000), VC++, MFC, XML, ColdFusion (Year 2000 again) and plenty of embedded programming & designing.
            – Pratik
            Nov 20 at 12:06










          • Thank you for the gratitude, but honestly I'm no expert. But if you ask me for suggestion, I have just one rule for myself - Learn any technology / language but from the basics. Often I see most people would skip basics and struggle a lot down the line. If you want to learn NativeScript, start from basics of JavaScript, OOPS, TypeScript, then bits of iOS & Android.
            – Manoj
            Nov 20 at 13:12















          up vote
          0
          down vote



          accepted










          The contacts plug-in saves the contact on the first available account on device, fortunately if that becomes your Google account then sync will be taken care by default.



          In case if that is not a Google account then you will have to override the save method to choose right account.






          share|improve this answer





















          • Manoj, stackoverflow should include lots of emojis to express gratitude towards people like you. Thanks a ton again. What should I study to become expert like you? My background is way back from classic ASP 3.0 (year 2000), VC++, MFC, XML, ColdFusion (Year 2000 again) and plenty of embedded programming & designing.
            – Pratik
            Nov 20 at 12:06










          • Thank you for the gratitude, but honestly I'm no expert. But if you ask me for suggestion, I have just one rule for myself - Learn any technology / language but from the basics. Often I see most people would skip basics and struggle a lot down the line. If you want to learn NativeScript, start from basics of JavaScript, OOPS, TypeScript, then bits of iOS & Android.
            – Manoj
            Nov 20 at 13:12













          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          The contacts plug-in saves the contact on the first available account on device, fortunately if that becomes your Google account then sync will be taken care by default.



          In case if that is not a Google account then you will have to override the save method to choose right account.






          share|improve this answer












          The contacts plug-in saves the contact on the first available account on device, fortunately if that becomes your Google account then sync will be taken care by default.



          In case if that is not a Google account then you will have to override the save method to choose right account.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 at 9:43









          Manoj

          3,3831920




          3,3831920












          • Manoj, stackoverflow should include lots of emojis to express gratitude towards people like you. Thanks a ton again. What should I study to become expert like you? My background is way back from classic ASP 3.0 (year 2000), VC++, MFC, XML, ColdFusion (Year 2000 again) and plenty of embedded programming & designing.
            – Pratik
            Nov 20 at 12:06










          • Thank you for the gratitude, but honestly I'm no expert. But if you ask me for suggestion, I have just one rule for myself - Learn any technology / language but from the basics. Often I see most people would skip basics and struggle a lot down the line. If you want to learn NativeScript, start from basics of JavaScript, OOPS, TypeScript, then bits of iOS & Android.
            – Manoj
            Nov 20 at 13:12


















          • Manoj, stackoverflow should include lots of emojis to express gratitude towards people like you. Thanks a ton again. What should I study to become expert like you? My background is way back from classic ASP 3.0 (year 2000), VC++, MFC, XML, ColdFusion (Year 2000 again) and plenty of embedded programming & designing.
            – Pratik
            Nov 20 at 12:06










          • Thank you for the gratitude, but honestly I'm no expert. But if you ask me for suggestion, I have just one rule for myself - Learn any technology / language but from the basics. Often I see most people would skip basics and struggle a lot down the line. If you want to learn NativeScript, start from basics of JavaScript, OOPS, TypeScript, then bits of iOS & Android.
            – Manoj
            Nov 20 at 13:12
















          Manoj, stackoverflow should include lots of emojis to express gratitude towards people like you. Thanks a ton again. What should I study to become expert like you? My background is way back from classic ASP 3.0 (year 2000), VC++, MFC, XML, ColdFusion (Year 2000 again) and plenty of embedded programming & designing.
          – Pratik
          Nov 20 at 12:06




          Manoj, stackoverflow should include lots of emojis to express gratitude towards people like you. Thanks a ton again. What should I study to become expert like you? My background is way back from classic ASP 3.0 (year 2000), VC++, MFC, XML, ColdFusion (Year 2000 again) and plenty of embedded programming & designing.
          – Pratik
          Nov 20 at 12:06












          Thank you for the gratitude, but honestly I'm no expert. But if you ask me for suggestion, I have just one rule for myself - Learn any technology / language but from the basics. Often I see most people would skip basics and struggle a lot down the line. If you want to learn NativeScript, start from basics of JavaScript, OOPS, TypeScript, then bits of iOS & Android.
          – Manoj
          Nov 20 at 13:12




          Thank you for the gratitude, but honestly I'm no expert. But if you ask me for suggestion, I have just one rule for myself - Learn any technology / language but from the basics. Often I see most people would skip basics and struggle a lot down the line. If you want to learn NativeScript, start from basics of JavaScript, OOPS, TypeScript, then bits of iOS & Android.
          – Manoj
          Nov 20 at 13:12


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53384777%2fnativescript-contacts-how-to-sync-with-google-contacts%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          TypeError: fit_transform() missing 1 required positional argument: 'X'