IONIC for iphone6 and iPhone 6 Plus. Can I show more content in iPhone6 as it has larger screen


#1

I think that some apps are optimized for the iPhone 6 screen, so they can show more information rather than just zooming the screen.
Can I do that using Ionic?


#2

Do we have any method to acheive this for iOS. App on android scales autmatically. :grin:


#3

Yes, this is driving me crazy too!

On Android, the app grows nicely to fit any screen. If the screen size is bigger (i.e., more pixels) then more information is displayed. That is, the pixels themselves are not scaled, rather, the app “window” grows.

But on iOS, it almost looks like the pixels themselves are scaled larger! So you get the same amount of information on the screen. It’s very sad.

Halp!


#4

Hey man, did you figure out how to fix this? I’m having the same issue :confused:


#5

Can one of you post screen shots? No one else is really having the issue.

Make sure you’re updated to the latest cordova and targeting iOS 8 or higher otherwise iOS will automatically scale the app up because the builds for lower iOS devices don’t know that a higher resolution exists


#6

Here is the screenshot, @NorthMcCormick
I’m targeting iOS 8.2 and it still scale up everything.


#7

Are you up to date on cordova too? If you’re stuck on a version around 3ish, it’s probably too old


#8

@NorthMcCormick, I’m using Cordova 5.1.1. The app looks perfect on Ionic View, it’s when I build and send it to test flight that some settings may have changed. Is there anything I can do on Xcode to force it to be retina-ready?


#9

This is kind of a stretch, but it might do the trick. Can you use Ionic Resources to generate your splash screens for iOS and see if that fixes it?

Doing some reading: iOS determines whether to scale an app by the resources it has. So if you don’t have a @3x resource for the launch image it assumes the app is not ready to be rendered at the full resolution.

http://ionicframework.com/docs/cli/icon-splashscreen.html

If you need some help with that.


#10

@NorthMcCormick, that was a great try, but didn’t work. The Ionic Resources didn’t generate any @3x image, just the standard @2x. Is it right?

Thank you very for your help so far.


#11

Yeah it’s weird this is being so tough. I remember just doing something easy.

Can you try removing the iOS platform and re-adding it if you haven’t already?

It could be something cached


#12

@NorthMcCormick, I found out that the splash images were there but with the wrong name (whitout @3x), I renamed it and I’ll try again as soon as I fix this insane bug about arm64, did anyone ever got this?

I’m using Azure Notification Hub (not by choice, I have to use it :confused: ) and it doesn’t have 64bits support.


#13

Finally i got this working :smile:

Steps:

  1. Add all splash screens with correct names and resolution. I have added required splash screen details below.
  2. Remove platform/ios folder
  3. Update phonegap using npm update phonegap
  4. Rebuild iOS platform --> phonegap build ios
  5. If you are using splash screen phonegap plugin then you have to update that plugin also. For that you have to remove that plugin and add it again.
  6. All set it will work perfectly

Required images name and resolution.

  1. Default-568h@2x~iphone.png 640 × 1136
  2. Default-667h.png 750 × 1334
  3. Default-736h.png 1242 × 2208
  4. Default-Landscape-736h.png 2208 × 1242
  5. Default-Landscape@2x~ipad.png 2048 × 1536
  6. Default-Landscape~ipad.png 1024 × 768
  7. Default-Portrait@2x~ipad.png 1536 × 2048
  8. Default-Portrait~ipad.png 768 × 1024
  9. Default@2x~iphone.png 640 × 960
  10. Default~iphone.png 320 × 480

#14

Haha we love 64 bit! You have to have it. I’m not familiar with that library. Is it open source?


#15

Thanks @shashwattripath and @NorthMcCormick, I’m pretty confident that this will work, I just need to fix my current bug and I’ll test it, thanks a lot!

@NorthMcCormick, yeah, this is open source, and this is the error I’m getting:

ld: warning: ignoring file EyedentifyApp/Plugins/msopentech.azure.NotificationHub/WindowsAzureMessaging.framework/WindowsAzureMessaging, missing required architecture arm64 in file EyedentifyApp/Plugins/msopentech.azure.NotificationHub/WindowsAzureMessaging.framework/WindowsAzureMessaging (3 slices)
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_SBNotificationHub", referenced from:
  objc-class-ref in NotificationHub.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The weird thing is, I was able to build this app last week, and I didn’t change anything related to this NotificationHub.


#16

I fixed this by removing the plugin using cordova and adding it using grunt (I’m using ionic-generator for yeoman), not sure if it fixed some path problems or if it just updated the plugin, anyway, it’s working now :smile:

About the splash screens, I manually renamed it, but when I build, the old ones are created again (without the @3x). When checking on xCode, the images are not there, not even the original ones (Default-736h.png).

I’ll follow @shashwattripath advice and report.


#17

Oh good haha. I’ve had to re-compile some older libraries with x64 enabled then re-add them… Complicated, but it works for some of them.

And thanks @shashwattripath for the detailed steps, much appreciated


#18

So @shashwattripath didn’t work here. I don’t know why it doesn’t pick up the right images by default.
What I did to make it work was to enable the Asset Catalog and manually drag and drop the right images from there.
It’s a painful process to get it right with the names and sizes, but works :smile:


#19

Nice to know that your problem is solved :smile: .
I too tried using your approach, but it didn’t worked. Finally ended up rebuilding iOS platform, which solved my issue.