Natively Docs
Join our community 🔥
  • 👩‍🚀Getting Started
    • What is Natively?
    • Why Natively?
    • FAQ
    • Create Your First App
  • 🚀Natively Platform
    • 🚉Releases
    • 🖌️Appearance
      • 😼App Icon
      • 📱Loading Screen
      • 📱Error Screen
      • 🎨Style
    • 🎬Preview
    • ⭐Features
      • 🛳️Bottom Bar
      • 🚇Deeplinks
        • 🔥Firebase
        • 🔗Universal Links
        • 🌱Branch.io
      • 📍Geolocation
      • 🔔Notifications
        • 📲OneSignal Notifications
        • 🔥Firebase Notifications (Advanced)
      • 📒Contacts
      • 👩‍🎨Social Auth
        • 🍏Sign In with Apple
      • 💟HealthKit
      • 💰Purchases
      • 🤑Admob
      • 💳NFC
      • 📷Camera
      • 📂Photo Library
      • 🎤Microphone
      • 📈Analytics
        • 🕊️AppsFlyer
        • 😛Facebook
    • 🚚Publish
      • 🍏iOS App
      • 🤖Android App
    • ⚙️Settings
    • 🙈Subscription Plans
  • Guides
    • 🧋Integration (Native Features)
      • 🏅How to get started?
      • ℹ️Device
      • ℹ️Browser Info
      • 🛳️Bottom Bar
      • ✂️Clipboard
      • 🚦Push Notifications - OneSignal
      • 🚦Push Notifications - Firebase (Advanced)
      • 📍Geolocation
      • 📦App Storage
      • 🗝️Biometrics & Credentials
      • 📧Native SMS/Email
      • 📅Native Date Picker
      • 📸Native Camera
      • 🎙️Native Audio Recorder
      • 🈁Native Scanner (QR/Barcode)
      • 📔Contacts
      • 🍏Apple Sign In
      • ❤️HealthKit
      • 💸In-App Purchases
      • 🤑Admob
      • 💳NFC
      • 🥑Show Toast/Banner
      • ⏳Show/Hide Loading Screen
      • 🥑Haptic Feedback
      • 🖼️Share Media/Files
      • 📱Open an external App/URL
      • ✍️Request User's review
      • ↔️getInsets
      • 🎨Control Style & Colors
    • 🔍Troubleshooting
    • 🐈Setup RevenueCat App
    • 🚑Setup Admob App
    • 🚥Setup One Signal App
    • 🧑‍🤝‍🧑Setup website Universal Links (Deeplinks)
    • 🍕Testing & Submitting your app
    • 🔑Generate iOS Push Key (NEW)
    • 🔑Generate iOS Push Certificate (Legacy)
    • 🤝Affiliate program
    • 📕For Partners: Natively Brand Book.
Powered by GitBook
On this page
  • 🧋 Bubble.io Plugin
  • 🛠 JavaScript SDK

Was this helpful?

  1. Guides
  2. Integration (Native Features)

Contacts

PreviousNative Scanner (QR/Barcode)NextApple Sign In

Last updated 2 months ago

Was this helpful?

🧋 Bubble.io Plugin

Natively - Contacts

!!! YOU NEED TO SET "ContactsObject (Natively - ... " into element field

Events:

  • Get All Contacts Success

  • Get All Contacts Failed

  • Create Contact Success

  • Create Contact Failed

States:

  • Get Contacts Result - list of ContactObject's

    • ContactObject:

      • FirstName

      • LastName

      • Phones - Array of contacts phone numbers, if there are 2 or more phone numbers, it's separated by a comma (example: "05435235235,124334234")

      • Emails - Array of contacts emails. If there are 2 or more emails, it's separated by a comma (example: "test@test.co,build@natively.co")

      • ID - unique contact identifier on these device.

  • Create Contact ID Result - Id of created contact after calling Create Contact action

  • Create/Get Contacts Status - Result status after calling Create Contact or Get all contacts

Actions:

  • Get All Contacts - response: list of ContactObject's

  • Create Contact - response: Contact ID

    • First name - Required

    • Last name

    • Phone

    • Email

  • Get Contact By ID - response: list of ContactObject's

🛠 JavaScript SDK

NativelyContacts

const contacts = new NativelyContacts()
const contacts_save_callback = function(resp) {
        console.log(resp.id);
        console.log(resp.status);
};
const contacts_all_callback = function (resp) {
        console.log(resp.contacts);
        console.log(reps.status); // "SUCCESS"/"FAILED"
};
contacts.getAllContacts(contacts_all_callback);
contacts.createContact(contacts_save_callback);
🧋
📔
Bubble.io Plugin
JavaScript SDK