Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Microsoft Power Apps

You're reading from   Learn Microsoft Power Apps The definitive handbook for building solutions with Power Apps to solve your business needs

Arrow left icon
Product type Paperback
Published in Sep 2023
Publisher Packt
ISBN-13 9781801070645
Length 702 pages
Edition 2nd Edition
Arrow right icon
Authors (2):
Arrow left icon
Elisa Bárcena Martín Elisa Bárcena Martín
Author Profile Icon Elisa Bárcena Martín
Elisa Bárcena Martín
Matthew Weston Matthew Weston
Author Profile Icon Matthew Weston
Matthew Weston
Arrow right icon
View More author details
Toc

Table of Contents (27) Chapters Close

Preface 1. Introducing Power Apps FREE CHAPTER 2. Creating Your First Canvas Power App 3. Creating Apps in SharePoint 4. Publishing and Leveraging in Power Apps 5. Exploring Controls 6. Exploring Formulas 7. Exploring Reusable Controls 8. Working with Data 9. Introducing Connectors 10. Using GPS in Power Apps 11. Working with Images and Barcodes 12. Securing Your Power Apps 13. Working Offline 14. Using Power Automate with Power Apps 15. Using Azure with Power Apps 16. Visualizing Data 17. Introducing Artificial Intelligence 18. Introducing Microsoft Dataverse 19. Introducing Model-Driven Apps 20. Creating Model-Driven Apps 21. Exploring Environments and Data Policies 22. Introducing the Future of Power Apps 23. Good Practices for Creating Power Apps 24. Other Books You May Enjoy
25. Index
Appendix

Detecting a connection state

One of the key things for making your Power App available offline is the ability to detect whether a network is present or not. First of all, Power Apps can detect the presence of a connection signal using a function that can then be used within the logic of your app:

Connection.Connected

This function will return a Boolean value: true meaning it is connected and false meaning it is disconnected.

Power Apps can also determine whether the connection is based on the cellular connection of the device or whether it is using Wi-Fi. If the device is using a mobile network, then it is classed as a Metered connection:

Connection.Metered

Again, this returns a Boolean value: true for a metered network or false for an alternative connection.

Both of these connection states should be considered while developing your app, as you can change the behavior of the app depending on whether the app is online or offline, and you can change the behavior of the app depending...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime