Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default settings #58

Closed
wants to merge 5 commits into from
Closed

Conversation

joelekstrom
Copy link

This PR adds some functionality that made life easier for us at Football Addicts when testing notifications.

Our workflow is usually to have a lot of Knuff windows open with different payloads to test multiple things. It was quite annoying to have to set the token and identity for each window individually.

This has been fixed by adding a settings window where one can choose a default token and identity. The defaults will be used in any window where a token and identity has not been set. Setting the token and identity normally will override the default settings for a window.

The default token will be used across all windows where a specific
token has not been set. This will ease debugging when keeping multiple
windows open, and reinstalling the app gives the debug device a new
token.

No need to copy-paste it into several windows anymore.
Prepares for allowing identity selection from settings to set a
global identity for all windows
Now called APNSIdentity, this wrapper makes it easier to
juggle multiple identities without caring about manual
memory management.
Makes it a little prettier and adds a clarifying text.
@blommegard
Copy link
Member

I don't think I have seen this behaviour in other document apps.

The token should be saved by the document, and maybe we should find a way to store a reference to the identity as well?

@joelekstrom
Copy link
Author

joelekstrom commented Sep 21, 2016

The token is saved by the document just like before. If one wants to, the default settings can be ignored and the app can be used exactly as before. This is more of a fallback if no token has been entered in a document.

I agree that this isn't common in document-based apps. But I also think it's uncommon for document-based apps to have something that is so commonly shared between documents as the token is in Knuff.

Now that I think about it, "Fallback Settings" is probably a better terminology for this feature.

@blommegard
Copy link
Member

This tries to solve the same problem as #61.
I really appreciate both of your efforts but neither of them seems like the right way to do it for a tool like this.

Would love to start brainstorming for another solution, I just created #65 for that purpose.

@blommegard blommegard closed this Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants