-
Notifications
You must be signed in to change notification settings - Fork 940
Is possible to switch server on today extension? #21
Comments
The CoreData is stored in the container App, it's not directly available in the extension App. |
@zttt Please checkout the latest source code. I've migrated the CoreData into shared container so that allVPN() is now functional in widget. |
In order to display a list or whatever which presents the VPNs, the UI should be carefully designed to match the consistency style of Notification Center. I'd prefer to draw a prototype before coding. Do you have any idea about the UI? |
Thanks for the update. It works perfect now. About the UI, I think a collection view is better than a list. Maybe use flags of different country(base on the server IP) to represent VPNs? |
Yes, that's what I expected. Furthermore, there should be title labels above or behind each flag in order to indicate different servers in the same country. |
I tried to access the vpn array from today extension,
var vpns = VPNDataManager.sharedManager.allVPN()
It crashed at first, then I check the TodayWidget target, it stopped crashing, instead, it gave me an empty array.
Is there any way we can access those data and set the active server from Today Extension?
The text was updated successfully, but these errors were encountered: