Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

update: Add 'call to action' #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

update: Add 'call to action' #37

wants to merge 1 commit into from

Conversation

mrshu
Copy link
Collaborator

@mrshu mrshu commented Sep 27, 2016

  • Add Call to Action for non-windows platforms.

Signed-off-by: mr.Shu mr@shu.io

@mrshu
Copy link
Collaborator Author

mrshu commented Sep 27, 2016

@bsstoner to test this out I suggest you do the following:

  1. comment out lines 33-35 (check whether installation is happening)
  2. reload the extension (this will be perceived as an update, the code will still execute).

Thanks!

if (os !== 'w') {
chrome.tabs.create({ url: 'chrome://settings/searchEngines' });
chrome.notifications.create({
type: "basic",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bsstoner This is indeed very basic and might not work as well as we would like it to.

It might be interesting to add some Rich notifications, especially with some nice pictures which will make the whole process easier for everyone.

@@ -51,6 +51,7 @@
"contextMenus",
"webRequest",
"webRequestBlocking",
"*://*.duckduckgo.com/"
"*://*.duckduckgo.com/",
"notifications"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like it very much, but this permission is required -- otherwise we won't be able to trigger the popup/notification.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it introduce an extra prompt on install?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it does not. It only adds a line that says Display notifications to the description:
screenshot from 2016-09-28 00-33-57

@mrshu mrshu force-pushed the mrshu/call-to-action branch 2 times, most recently from 818d68f to 347fbb7 Compare September 27, 2016 22:21
@bsstoner
Copy link
Contributor

Is there a way we can test this as part of the homepage flow before merging/pushing out the update?

@mrshu
Copy link
Collaborator Author

mrshu commented Sep 27, 2016

@bsstoner hmm, good question.

The only way that comes to mind is creating a new, dummy, unlisted extension which will be used just for testing.

@mrshu mrshu force-pushed the mrshu/call-to-action branch from 347fbb7 to 35a2e4a Compare September 30, 2016 19:12
* Add Call to Action for non-windows platforms.

Signed-off-by: mr.Shu <mr@shu.io>
@mrshu mrshu force-pushed the mrshu/call-to-action branch from 35a2e4a to 82c9867 Compare September 30, 2016 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants