Are you using Push Notifications and Local Push Notifications in your iOS apps?
@orihpt4 жыл бұрын
Yes
@Manjac184 жыл бұрын
Hi Alex, good video. Could you tell me please, how to attach an image to notification? Thanks!!!
@rebeloper4 жыл бұрын
That's a bit more complicated. You could use Firebase for that. Let me show you in a mentoring session: rebeloper.com/mentoring
@erickloomis52312 жыл бұрын
This was a very easy tutorial to follow. However, when you call "registerForRemoteNotifications" in the extensions, I get an error message saying, " Reference to member "" cannot be resolved without contextual type." How do I fix this in the most recent update of Xcode? Everything else is written correctly from what I can tell, it is just that one part that is preventing me from running the build. Thanks in advance!
@erickloomis52312 жыл бұрын
Fixed the problem by capitalizing 'A' in "Application.registerForRemoteNotifications" Now I have another problem where I am getting a message about the button returning to main --Violating contract. How do I fix this?
@rebeloper2 жыл бұрын
Hm... I'll need to take a look at your code. You can book a call with me here: rebeloper.com/mentoring BTW Find out How to Create Custom a Framework in Swift within minutes 👉 kzbin.info/www/bejne/aJyXnoCagct8gbs
@mhetrios2 жыл бұрын
Very useful. Thank you.
@rebeloper2 жыл бұрын
You are welcome! Next check out the FUTURE of SwiftUI Navigation View: kzbin.info/www/bejne/pnjUoIlpZtanqaM
@胡晨旖9 ай бұрын
Where can I find the demo😄
@rebeloper9 ай бұрын
All the resources can be found here: store.rebeloper.com/youtube-channel-resources Next watch OpenAI Images In SwiftUI Project With Amazing GitHub Repository 👇 kzbin.info/www/bejne/gX-bfaZtpLCkmpI&ab_channel=Rebeloper-RebelDeveloper
@bethlarson71443 жыл бұрын
How about being able to change the message payload each time it fires?
@rebeloper3 жыл бұрын
That's a bit tricky to do. I can show you in a mentoring session: rebeloper.com/mentoring BTW if you liked this video check out my lates one where I create a Custom Camera from scratch in SwiftUI and AVFoundation: kzbin.info/www/bejne/kJ6ze3WfrMyNpbM
@DanKardell2 жыл бұрын
How do you send a push to a single device?
@rebeloper2 жыл бұрын
I suggest using Firebase cloud Functions. I do have a demo project ready. I can show it to you if you want to in a mentoring session. Pleas ebook your call here: rebeloper.com/mentoring BTW check out my lates video about APIs For Beginners: What You Need To Know 👉 kzbin.info/www/bejne/pKu8gKWOZc2dnqs
@DanKardell2 жыл бұрын
@@rebeloper Thanks but can't use firebase in our project
@rebeloper2 жыл бұрын
How about Signal? BTW check out this New MUST HAVE SwiftUI View 👉 kzbin.info/www/bejne/p3uxqmCrasyVp5o
@Manjac184 жыл бұрын
Also is a good question - how to delete a single notification, using uuid...
@rebeloper4 жыл бұрын
You want to have a reference to all of the active notifications uuid, in an array for example; and than delete the appropriate one with remove... Check out my lates tutorial about MVC vs. MVVM: kzbin.info/www/bejne/aGq6oaOvnbyCa8U
@vince.r3 жыл бұрын
Hi, how come didReceive response function does not run when the app is terminated?
@rebeloper3 жыл бұрын
Hmm... that is strange. I honestly don't know. If you did like this video I think you will love my lates Live Stream on Advanced SwiftUI TextFields: kzbin.info/www/bejne/hGnIhah3lJqHbLM
@UdayBabariya4 жыл бұрын
Easy explained!!! 👍🏻
@rebeloper4 жыл бұрын
Glad you think so! BTW check out my lates tutorial about MVC vs. MVVM: kzbin.info/www/bejne/aGq6oaOvnbyCa8U
@cem8904 жыл бұрын
How can we redirect to the viewcontroller we want when the notification is clicked?
@rebeloper4 жыл бұрын
You want to get the top most visible view controller for that. I can show you exactly how to do it on a 1:1 mentoring: rebeloper.com/mentoring If you liked this video you may be interested in my lates one: *UITableView with Custom Cell* kzbin.info/www/bejne/hpyVZnennMuBnrc
@94mac4 жыл бұрын
Can’t you just have a func that calls the viewcontrollers view? Doesn’t seem that hard to do
@МирВам-ы7щ Жыл бұрын
Hello mister Alex, may I ask you a help please? our task was was do some Order app with 3 view controllers. in 1st there are collection view with cocktails. you can click and will see a details on a second view controllers and there is a button Like there, after clicking on it it must be added inside a third view controller. so how I can share array between view controllers? I did empty array in a 1st collection view and i update every time when user click Like button inside a second view controller ( throw protocol Delegate) and a problem is share iwht this array to a third view controller. I tried use notification center but probably dont know how work with array. I did it before only with text field. my code looks l ike: let dictionary = [basketArray] NotificationCenter.post(name: .changeArrayNotification , object: self, userInfo: dictionary) and it say to me Cannot convert value of type '[[Drinks]]' to expected argument type '[AnyHashable : Any]?'. this array i fetch from Api and struct looks like struct Drinks: Codable { var name: String var image: String var instructions: String enum CodingKeys: String, CodingKey { case name = "strDrink" case image = "strDrinkThumb" case instructions = "strInstructions" } I fecth all inside collectionView and it work but when I try choose a few of them by clicking inside a cell at picture with label Like it must show in another view controller in another Viewcontroller like Favourite collection. so I dont know what to do) I add to array all choosen models with name and picture insdie and it work(throw protocol delegate ). but I cant give this array to another voecontroller it dont see my array.
@rebeloper Жыл бұрын
While a haven't been working in UIKit for a while now I can take a look at your code and come up with some solution on a mentoring session. Consider booking a call with me here: rebeloper.com/mentoring If you're a SwiftUI developer you will love: Unveiling The 10 Commandments of SwiftUI - #4 Will Surprise You! 👇 kzbin.info/www/bejne/aZ-rfGiZqbF2hKc
@МирВам-ы7щ Жыл бұрын
@@rebeloper thank you sir. I hope a code will take a few lines. i added functions but can't understand how display it
@drminx83994 жыл бұрын
great Thank you!!
@rebeloper4 жыл бұрын
You're welcome! If you liked this video you will just love my new one *The Best Weather App for iPhone - Latitude [BIG ANNOUNCEMENT]* kzbin.info/www/bejne/hKiXY56VmLRriKM
@caylandboston43103 жыл бұрын
This was not easy it was super complicated
@rebeloper3 жыл бұрын
I know. Once you do it enough times you will get accustomed to it. BTW take a look at my latest video: SwiftUI Animation kzbin.info/www/bejne/sGXblKNths6IqKc
@caylandboston43103 жыл бұрын
@@rebeloper No what I mean is i was just not able to understand anything you were saying at all. Like I have a basic understanding of Swift and have read the documentation twice, but pretty much nothing here made sense to me. I will study more and come back
@rebeloper3 жыл бұрын
Oh, I see. No worries. You will get the hang of it eventually. Do you like SwiftUI? Check out my latest Live Stream on SwiftUI Button Styles: kzbin.info/www/bejne/oKuvk6xsaM56rKs
@shafeepomme42573 жыл бұрын
Your approach didn't make any sense, I wish you would have typed the code step by step and Push notification was like testing and learning nothing