Build a Live Activity Realtime Polls App with Firebase & APNS Push Token | SwiftUI | iOS 17

  Переглядів 3,957

Xcoding with Alfian

Xcoding with Alfian

День тому

In this video, we're going to build Live Polls App where users can create a poll with multiple options, share, and vote in realtime. We'll add support for push token based LiveActivity as well #swiftui #iosdevelopment #firestore
Timeline
00:00:00 Demo & Intro
00:05:15 Project Setup, Firebase CLI & Local Emulator Setup
00:21:00 Building the iOS App
01:31:50 Add Widget Target with LiveActivity
02:01:44 Setup Firebase Functions to send live activity push token to APNS
GitHub Completed Project:
github.com/alfianlosari/LiveP...
Part 2 - Build a VisionOS Realtime LivePolls App | Multi Window
• Build a visionOS Realt...
Firebase Website:
firebase.google.com
Apple LiveActivity Documentation:
developer.apple.com/design/hu...
Downtown Glow by Ghostrifter & Devyzed
Creative Commons - Attribution-NoDerivs 3.0 Unported - CC BY-ND 3.0
Music promoted by www.chosic.com/free-music/all/

КОМЕНТАРІ: 18
@karunpant1080
@karunpant1080 9 місяців тому
Thanks this was a lifesaver. very useful step by step guide for live activity and I would say most comprehensive too. Thanks again.
@user-rd1jn9jq9y
@user-rd1jn9jq9y 9 місяців тому
Dear Alfian, First of all, I want to thank you very much for the work you are doing. This is invaluable experience and knowledge. You deserve respect and I wish you and your channel growth. I also have a question. What should I do to have more than 4 possible answers? Could you record a short video or, if it's not difficult to explain, write the necessary code here in the comments or somewhere. It seems to me that many people have such a question and your answer will be useful not only to me. I will be grateful to you. Thanks again for your work. Alfian, you're cool!
@girishdadhich3186
@girishdadhich3186 9 місяців тому
its really helpful, keet it up developer , hope your channel grow so much
@XCA
@XCA 9 місяців тому
Thanks
@icodingschool9018
@icodingschool9018 3 місяці тому
@Alfian Supernb really appreciated ur work. I learned this. Thank you
@federicolupotti8299
@federicolupotti8299 8 місяців тому
Nice video Alfian! I have a question, there are some reason to create a new poll in that way intead of the plus button at top right? In this situation we could show the .sheet, complete it and then show the information in the main home. I think it could follow the HIGs more acurrate in this way, what do you think? Anyway I will learn a lot, thanks for share it
@XCA
@XCA 8 місяців тому
Yup, agreed using a sheet for the poll form will be a better UX for adding and editing as well. I put the form inside the main list to save time as i want to focus more on the Firestore and LiveActivity otherwise the video will be very long 😉
@federicolupotti8299
@federicolupotti8299 8 місяців тому
@@XCA I agree!!
@SyedboysGuthawali
@SyedboysGuthawali 3 місяці тому
45:12 when the livepollssection shows up and when i click on drop down nothing shows to me And i am also seeing poll in firestore dashboard console and also running local emulator
@sakshammahajan3768
@sakshammahajan3768 2 місяці тому
@XCA I have been following your tutorials for a time now. In this i am getting a error PollViewModel should conform to a view in the file HomeView which I dont get. Can you please tell me whats the issue.
@sakshammahajan3768
@sakshammahajan3768 2 місяці тому
SchemeBuildError: Failed to build the scheme ”Polled” static method 'buildExpression' requires that 'PollViewModel' conform to 'View' Compile HomeView.swift (arm64): /Users/spartan/Desktop/IOSDev/Polled/Polled/Views/HomeView.swift:30:17: error: static method 'buildExpression' requires that 'PollViewModel' conform to 'View' PollViewModel(pollId: id) ^ SwiftUI.ViewBuilder:3:24: note: where 'Content' = 'PollViewModel' public static func buildExpression(_ content: Content) -> Content where Content : Vie
@sakshammahajan3768
@sakshammahajan3768 2 місяці тому
@xca I really want to move to the visonOS app for this. Please let me know asap, it would be of great help.
@RJ-qc8ug
@RJ-qc8ug 9 місяців тому
hi! i just started following this tutorial yesterday, and at 45:12 when the livepollssection shows up when you click on drop doesnt happen for me (nothing drops down, and i get the errors "Error fetching snapshot: false for 'list' @ L6" and "10.12.0 - [FirebaseFirestore][I-FST000001] Listen for query at polls failed: false for 'list' @ L6" what am I doing wrong?
@RJ-qc8ug
@RJ-qc8ug 9 місяців тому
ive researched and configured the firebase.rules file to allow all read and writes, and now i am not getting any errors, but i am still not getting the drop down as 45:12
@XCA
@XCA 9 місяців тому
Are you seing your created poll document in firestore dashboard console? Are you running local emulator?
@RJ-qc8ug
@RJ-qc8ug 9 місяців тому
@@XCA i have researched and solved my issue! could we get a tutorial on how to use the real database instead of the emulator? I commented out the settings and tried running, but that doesnt seem to do the trick
@M-of5wj
@M-of5wj 3 місяці тому
@@RJ-qc8ughow do you solved it
@masalileuykuai
@masalileuykuai 3 місяці тому
I was a little upset that it required an apple developer account to realize this design.
Why I don't do MVVM anymore
10:56
Flo writes Code
Переглядів 6 тис.
Rabbit R1: Barely Reviewable
19:53
Marques Brownlee
Переглядів 6 млн
Завтра в школу с... | Шоу-квиз «Вопросики»
00:28
Телеканал СОЛНЦЕ
Переглядів 3,2 млн
Level 1 to 100 Mystery Buttons
00:46
A4
Переглядів 5 млн
0% Respect Moments 😥
00:27
LE FOOT EN VIDÉO
Переглядів 25 млн
SwiftUI Push Notifications Crash Course
15:57
DesignCode
Переглядів 17 тис.
Apple iPhone sales fall in nearly all countries | BBC News
5:21
BBC News
Переглядів 21 тис.
Add USDZ LiDAR Object Capture to Inventory Tracker SwiftUI App | iOS | visionOS
16:30
Configurable Widgets with AppIntents
10:50
Flo writes Code
Переглядів 4,4 тис.
Flutter for iOS developers
13:43
Flutter
Переглядів 95 тис.
How to create Local Notifications on iOS with SwiftUI (Xcode)
15:44
Первый рабочий день HappyPC Старый Оскол! 🔥
9:51
Герасимов Live
Переглядів 14 тис.
I KNEW I’d Hate this (I Was Wrong)
12:19
Linus Tech Tips
Переглядів 617 тис.
КУПИЛ SAMSUNG GALAXY S24 ULTRA ЗА 88000 РУБЛЕЙ!
27:29
DimaViper
Переглядів 36 тис.