Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

App install banner #427 #508

Merged
merged 18 commits into from
Dec 8, 2016
Merged

Conversation

naveed-ahmad
Copy link
Contributor

This should resolved #427

Opening PR for reviews and suggestions. Sorry still learning reactjs( and hating it so far ) so bear my bad ugly for now :)

@ahmedre
Copy link
Contributor

ahmedre commented Nov 25, 2016

Deployed to: http://staging.quran.com:32941

@redhae
Copy link
Contributor

redhae commented Nov 25, 2016 via email

@naveed-ahmad
Copy link
Contributor Author

naveed-ahmad commented Nov 25, 2016

@redhae thanks for reporting. Did you saw two banners simultaneously or closed the banner and saw again on page refresh ?

Second case is known issue, working on that. But if first case if true, can you send screenshot or something to help me debugging ?

EDIT: Please test again. I was forcefully showing ios banner for testing purposes. Still it shouldn't two two banner :/

@ahmedre
Copy link
Contributor

ahmedre commented Nov 25, 2016

Deployed to: http://staging.quran.com:32942

Copy link
Contributor

@thabti thabti left a comment

Choose a reason for hiding this comment

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

Mashallah this will drive a lot of users to our apps.

LGTM!

@thabti
Copy link
Contributor

thabti commented Nov 26, 2016

@naveed-ahmad amazing work bro. I don't have an android to test it on. Can you include some screenshots?

Happy for this to be merged in.

@naveed-ahmad
Copy link
Contributor Author

@sabeurthabti preview for different mobiles and tables:

https://drive.google.com/file/d/0B-_ddcseNUwLeHZKYU84V3lzRUk/view

@naveed-ahmad naveed-ahmad changed the title wip on app install banner #427 App install banner #427 Nov 26, 2016
@ahmedre
Copy link
Contributor

ahmedre commented Nov 26, 2016

Deployed to: http://staging.quran.com:32950

display: inline-block;
vertical-align: middle;
margin: 0 5px;
font-family: 'ArialRoundedMTBold', Arial;
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO we should use font that we have used in quran.com. Font family should be either source sans pro or Montserrat or combination of both.

width: 100%;
height: 80px;
line-height: 80px;
font-family: 'Helvetica Neue', sans-serif;
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO we should use font that we have used in quran.com. Font family should be either source sans pro or Montserrat or combination of both.

@ar5had
Copy link
Contributor

ar5had commented Nov 27, 2016

@naveed-ahmad This might help you with react.

@ahmedre
Copy link
Contributor

ahmedre commented Nov 27, 2016

Deployed to: http://staging.quran.com:32952

@ahmedre
Copy link
Contributor

ahmedre commented Nov 27, 2016

Deployed to: http://staging.quran.com:32953

@ahmedre
Copy link
Contributor

ahmedre commented Nov 27, 2016

Deployed to: http://staging.quran.com:32954

@naveed-ahmad
Copy link
Contributor Author

@arshdkhn1 removed the fonts, thanks for the course link.

@ar5had
Copy link
Contributor

ar5had commented Nov 28, 2016

@naveed-ahmad
screenshot_2016-11-28-14-20-45-465_com android chrome
This is how banner looks in my mobile browser.

Few suggestions -

1- Quran logo is too blurry to be used.

2- I see styling is different for different browsers/os. Did you change the colors of banner recently ?

3- IMO colors should be used that are complementary to our sites' color. They are looking a bit off the color scheme that is used in site.

@ahmedre
Copy link
Contributor

ahmedre commented Dec 1, 2016

Deployed to: http://staging.quran.com:32971

@naveed-ahmad
Copy link
Contributor Author

Android:
android-mobile

iOS:
ios-mobile

@ahmedre
Copy link
Contributor

ahmedre commented Dec 1, 2016

strange, the build is failing because of the favicon for some odd reason...

 [859] ../static/images/favicon.ico 215 bytes {0} [optional] [built] [failed] [1 error]
 [860] ../static/images/titles ^\.\/.*\.svg$ 3.35 kB {0} [built]
[1577] ../static/images ^\.\/.*$ 8.2 kB {0} [built]
[1578] multi main 40 bytes {0} [built]
    + 1654 hidden modules

WARNING in ../static/images/favicon.ico
Module parse failed: /quran/static/images/favicon.ico Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
 @ ../static/images ^\.\/.*$
 @ ./components/SmartBanner/index.js
 @ ./containers/App/index.js
 @ ./routes.js
 @ ./client.js
 @ multi main

@ahmedre
Copy link
Contributor

ahmedre commented Dec 1, 2016

out of curiosity, does this use whatever banner stuff Apple and Google have (i.e. will it detect if the app is installed and either not show the banner or show it with 'open' instead?)

@ahmedre
Copy link
Contributor

ahmedre commented Dec 1, 2016

Safari on iOS 10.1.1

@ahmedre
Copy link
Contributor

ahmedre commented Dec 1, 2016

not to mention for Android, the native one is a lot nicer because it also pulls in info from Google Play and looks platform native - https://developer.android.com/distribute/users/banners.html

@naveed-ahmad
Copy link
Contributor Author

For android, native banner is available only for Chrome 44 and greater version:
https://developers.google.com/web/updates/2015/03/increasing-engagement-with-app-install-banners-in-chrome-for-android

And native iOS banners are available for safari 6 or greater.

@ahmedre
Copy link
Contributor

ahmedre commented Dec 1, 2016

can we do both then? native if we can, else fallback to this? sorry, i am not trying to be difficult!

@naveed-ahmad
Copy link
Contributor Author

Yep working on it.

@mmahalwy
Copy link
Contributor

mmahalwy commented Dec 5, 2016

@naveed-ahmad is this good to go?

@naveed-ahmad
Copy link
Contributor Author

@mmahalwy No, working on showing native banner for advance browsers and fallback to custom banner for older browsers. Ill try to finish this tonight.

@ahmedre
Copy link
Contributor

ahmedre commented Dec 7, 2016

Deployed to: http://staging.quran.com:32981

@ahmedre
Copy link
Contributor

ahmedre commented Dec 7, 2016

Deployed to: http://staging.quran.com:32982

@mmahalwy
Copy link
Contributor

mmahalwy commented Dec 7, 2016

good to go?

@naveed-ahmad
Copy link
Contributor Author

@mmahalwy Gooood to go!

@ahmedre
Copy link
Contributor

ahmedre commented Dec 7, 2016

Deployed to: http://staging.quran.com:32983

@ahmedre
Copy link
Contributor

ahmedre commented Dec 7, 2016

Deployed to: http://staging.quran.com:32984

@ahmedre
Copy link
Contributor

ahmedre commented Dec 7, 2016

Deployed to: http://staging.quran.com:32985

@ahmedre
Copy link
Contributor

ahmedre commented Dec 7, 2016

Deployed to: http://staging.quran.com:32986

@mmahalwy
Copy link
Contributor

mmahalwy commented Dec 7, 2016

good now? No more commits? :)

@naveed-ahmad
Copy link
Contributor Author

@mmahalwy lol yeah good to go now.

@thabti thabti merged commit bc4775f into quran:master Dec 8, 2016
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.

Add banner for mobile apps
6 participants