Questions tagged [universal]

621 questions
4
votes
1 answer

Built-in scripting language available on all major operating systems?

Does anyone know of a scripting language that's included with most platforms (say Mac/Windows/Linux)? I haven't been able to find one. So far javascript in web browsers or compiled java are about it. Jython comes close. My goal is to be able to…
3
votes
0 answers

Apple's universal logging, it's a silly thing but import os vs import os.log?

I use universal logging and this has been bugging me for a while. Many developers I know as well as and various blogs all tell me to import os.log. However I think that's wrong because: Apple's recommendation on imports is to import the top level…
drekka
  • 20,957
  • 14
  • 79
  • 135
3
votes
3 answers

Converting an iPhone app to a Universal app?

I have an iPhone app with FirstViewController and SecondViewController with respective views FirstView.xib and SecondView.xib. Now I want to make this app work with both iPhone and iPad. For iPad I need to merge Firstview.xib and SecondView.xib into…
Atif Azad
  • 1,294
  • 1
  • 16
  • 30
3
votes
1 answer

Lazy-loaded Angular modules don't get server side rendered with @nguniversal, while client side routing and rendering works

We recently broke up our Server Side Rendered Angular 11 app into lazy-loaded modules and now SSR doesn't work. Some of the URLs don't get routed properly and go to the 404 catch-all while others seem to be routed properly but show a white page…
3
votes
1 answer

Host Angular Universal 9 on Azure App Service with .Net stack

I have Angular Universal 9 & standard Angular 9. I have to host on Azure app service with stack: .Net 4.7. Angular Universal local as expected but when I deploy it on Azure web service is not working. Currently, an app with Angular 9 is working but…
3
votes
1 answer

Make iPad-xib from iPhone-xib

I am searching the web for a while now and didn´t find the answer... is it possible in Xcode4 to convert an iPhone.xib to an iPad.xib when upgrading to a universal-app?!? in Xcode 3 there was a possibility to create an ipad.xib from a selected…
3
votes
2 answers

iPhone - How to transform an iPhone only app to universal app?

how can i transform an iPhone only app to an universal application? EDIT : FOUND SOLUTION If you want to have the "Upgrade current target to iPad" option selected, you must have Target Device Family set to iPhone only, not iPad/iPhone. It works for…
Andrea Mario Lufino
  • 7,921
  • 12
  • 47
  • 78
3
votes
1 answer

Angular Universal: "Project could not be found in workspace."

I'm trying to convert my existing Angular Project to work with Angular Universal (https://universal.angular.io/). I'm following this tutorial: https://github.com/angular/angular-cli/wiki/stories-universal-rendering. I'm stuck at the end of Step 3…
3
votes
2 answers

Angular 5 build error "Property does not exist on type"

import { environment } from '../../environments/environment'; import { Headers } from '@angular/http'; @Injectable() export class ProjectsService { private _wpBase = environment.wpBase; ng build --prod gives me an error : ERROR in…
eixcs
  • 1,957
  • 4
  • 15
  • 37
3
votes
0 answers

Text content did not match error when hot reloading lazy loaded chunks. Webpack 4, React-Router 4, loadable-components 1.2

I have an universal boilerplate that works 99%. The problem is when I hot reload after code change the page shows the correct output, but If I do an refresh of the page I get an error like this. Warning: Text content did not match. Server: "HOME"…
Thomasn
  • 101
  • 5
3
votes
0 answers

What is the difference between appShell and universal in Angular 5?

I need server side rendering in my angular application to get the benefit of both SEO and boosting the load time of my app but I got confused with appShell As I read, I found that Angular Universal can solve my problems, so what appShell is for?
Raeef Refai
  • 1,471
  • 14
  • 26
3
votes
0 answers

Scaling game to support iPhone X

I'm creating a universal app but I have issues scaling my scene to display correctly on the iPhone X. I'm using a single scene size of 1536, 2048 and scaling it down to other devices using aspectFill. My scene is displayed correctly on every device…
Lcsmnts
  • 31
  • 1
  • 4
3
votes
3 answers

Simulator iPhone Retina has wrong screen resolution

I'm trying to write a Universal Application. The display should be slightly different for different screen resolutions. But when I code like this: - (void)viewDidLoad { SCREEN_WIDTH=[[UIScreen mainScreen] applicationFrame].size.width; …
iPadDeveloper2011
  • 4,560
  • 1
  • 25
  • 36
3
votes
0 answers

Sbt-native-packager & AutoPlugin & Mappings in Docker

This configuration works for Universal but not for Docker: sbt-native-packager Universal config: mappings in Universal += { // logic like this belongs into an AutoPlugin val confFile = buildEnv.value match { case BuildEnv.Development =>…
3
votes
0 answers

Angular Universal : Switching from server side view to client view

I have an Angular 4 project (I'm also using webpack) and I've decided to use angular universal to make Server Side Rendering. I'm using node (v6.10.2) with express to do the Server Side Rendering. I'm using universal implemented in angular…